Forum Discussion
Ruggerfly1
Nimbostratus
Jul 25, 2016APM Variable Assign force to Lowercase
Good Afternoon
I have an APM policy grabbing the username from a certificate - how can I force this to lowercase? regexp {(?x)(CN)=DOMAIN.([^,]+)} [mcget {session.ssl.cert.subject}] match CN USER; return $USER
2 Replies
- Michael_Jenkins
Cirrostratus
Can't test it right now, but off the top of my head, have you tried wrapping the $USER like this:
? or perhaps the mcget:[string tolower $USER]
.[string tolower [mcget {session.ssl.cert.subject}]] - Ruggerfly1
Nimbostratus
this worked perfectly - thank you!
regexp {(?x)(CN)=lab.([^,]+)} [mcget {session.ssl.cert.subject}] match CN USER; return [string tolower $USER]
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