Forum Discussion
jk20004_44080
Nimbostratus
Sep 04, 2015set/overide session values via iRule
we are using the Loop "function" in a APM policy to handle the Login page
in this loop we need to separate different possible login methods (email, loginname,….) which we do in a iRule.
We found...
Stanislas_Piro2
Cumulonimbus
Sep 08, 2015Same variable assign as Seth, but with a switch instead of multiple if:
session.custom.logontype =
set username [string trim [mcget {session.logon.last.logonname}]];
switch -glob $username {
"*@*" { return 1 }
"*\\\\*" { return 2 }
default { return 3 }
}
I use session.logon.last.logonname and not session.logon.last.username to be sure logon page "Split domain from full Username" option does not change behavior.
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