For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

Chris_Richards_'s avatar
Chris_Richards_
Icon for Nimbostratus rankNimbostratus
Jul 21, 2014

Getting 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

  • You should be able to use "starts_with"

    expr { [string tolower [mcget {session.logon.last.username}]] starts_with "ab" }