Forum Discussion
Chris_Richards_
Nimbostratus
Jul 21, 2014Getting session username and using wildcard name
Hi
I'm looking at setting up a rule which checks for the username and if it starts AB goes to one branch and if it starts CD goes to another branch. I'm using the current session as the authentication is done via a radius service and not using AD.
I'm starting with a blank rule and what I have so far is expr { [mcget {session.logon.last.username}] == AB% }
Do I need to change the == to starts?
Not tested the rule so far but am I on the right track?
1 Reply
- Kevin_Stewart
Employee
You should be able to use "starts_with"
expr { [string tolower [mcget {session.logon.last.username}]] starts_with "ab" }
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