Forum Discussion
Bazsi1
Apr 30, 2021Nimbostratus
Thanks for your reply SanjayP!
The main goal would be to dynamically assign up to n nubmers of RDP resources to the session based on a comma separated list from a AD attribute. In the meantime I came to a new idea about the solution. So:
There are for example 10 RDP resources, each with it's own variable containing the destination. In the RDP resource we can pass this like this:
After the AD query I can phrase the values in an iRule like:
when ACCESS_POLICY_AGENT_EVENT {
if {[ACCESS::policy agent_id] eq "RDP_phraser"}
{
set addresslist [ACCESS::session data get {session.ad.last.attr.myCustomAttribute}]
set addressarray [split $addresslist ","]
set n 1
foreach address $addressarray {
ACCESS::session data set session.custom.rdp_$n $address
incr n
}
}
}
And instead of assigning the resource from the iRule, I assign all of them based in their own variable. If there is a destination then the resource should appear if it is empty it should not.