Forum Discussion

F5-Geek's avatar
F5-Geek
Icon for Nimbostratus rankNimbostratus
Jul 02, 2018

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

 

4 Replies

  • 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

     

  • 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

  • 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.