Forum Discussion
APM Advanced Resource Assignment from iRule
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.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
