Roberto_GB_2613
Oct 26, 2016Altostratus
Retrieving username from APM iRule
Hi all,
I'm developing a new iRule for APM and I'm constantly getting an error while retrieving the username from the session...
when ACCESS_POLICY_AGENT_EVENT {
if { [ACCESS::policy agent_id] eq "ga_user_verify" } {
log local0. "CUSTOM - ga_user_verify"
set variables from APM logon page
set username [ACCESS::session data get session.logon.last.username]
}
I can see in the logs the following: Rule /Common/irule_ga_user_check : CUSTOM - ga_user_verify TCL error: /Common/irule_ga_user_check - invalid command name "testusername" while executing "$username"
I checked that the session variable %{session.logon.last.username} exists... The iRule is launched but the last line is getting an error. Any ideas why it's giving an error?
Thanks in advance,