Forum Discussion
UPN on big ip f5 APM policy
set extension [string tolower [mcget {session.ssl.cert.x509extension}]];
return [string range $extension [expr {[string first "othername:UPN<" $extension] +14}] [expr {[string last ">" $extension] -1}] ]; gives me following result upn
- F5-Geek
Nimbostratus
can findstr can be used for sesion variable.Please also help with the list of command that can be used in big ip pam policy thanks
- Stanislas_Piro2
Cumulonimbus
Hi,
there is a mistake in this command. try this one.
set extension [string tolower [mcget {session.ssl.cert.x509extension}]]; return [string range $extension [expr {[string first "othername:upn<" $extension] +14}] [expr {[string last ">" $extension] -1}] ];
I guess you got it from this codeshare
There was an error I just solved. the string first was searching a uppercase word (UPN) in a lowercase string
- Stanislas_Piro2
Cumulonimbus
findstr is not available in variable assign.
When I write variable assign, I use native tcl commands!
irule commands added by F5 are not available in variable assign. the only exceptions are starts_with and ends_with operators.
- F5-Geek
Nimbostratus
Thanks it works
Recent Discussions
Related Content
* 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