Forum Discussion

KeyPat_152122's avatar
KeyPat_152122
Icon for Nimbostratus rankNimbostratus
Sep 15, 2014

convert username and password to uppercase

I am new to iRules. I am trying to uppercase username & password when users try to logon to an internal application (https) through APM and then pass them to LDAP server for authentication. Can some one please help?

 

3 Replies

  • with APM you don't need an iRule for this, you can use the variable assign to manipulate strings.

     

    for the username this would be the content: session.logon.last.username = return [string toupper [mcget {session.logon.last.username}] ] ;

     

  •  

    Thanks for your reply. Should I be able to uppercase or manipulate the password? The username works but not the password.

     

  • you should use the secure variable there, and you might have to do mcget -secure {}, but i would start with trying secure variable from the drop down on the left side.