Forum Discussion
NoamRotter_1534
Nimbostratus
Jan 12, 2017APM variable assign and if statement
I want to change a variable caught by the APM.
The current var: session.logon.last.domain = local.domain
I want to replace it if the session.logon.last.domain is local.domain to somethin...
Jan 12, 2017
Hi,
This is done with an iRule, you must map localdomain as the Agent ID within the VPE. You also must attach the iRule to the virtual in the normal fashion.
when ACCESS_POLICY_AGENT_EVENT {
switch [ACCESS::policy agent_id] {
"localdomain" {
do something here
if { [ACCESS::session data get session.logon.last.domain] equals "local.domain" } {
ACCESS::session data set session.logon.last.fqdomain "abc.remote"
}
}
}
}
Cheers,
Kees
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects