Forum Discussion
Will_Adams_1995
Nimbostratus
Feb 09, 2016Certificate and Session Variable Problem on 11.6 HF4
Hi All,
I have a problem with an APM I am creating on our Production environment. I am doing an ondemand certificate check and then extracting the "username" from the certificate. On our devel...
Kevin_Stewart
Employee
Feb 09, 2016At the very least you need a semicolon between each of the statements:
session.logon.last.username = set f1 [mcget {session.ssl.cert.subject} ]; set f2 [split $f1 "," ]; set f3 [lindex $f2 0]; set f4 [split $f3 "="]; set f5 [lindex $f4 1];
But you also aren't actually assigning any value to session.logon.last.username. To do that you'd follow the above logic with a return statement:
session.logon.last.username = set f1 [mcget {session.ssl.cert.subject} ]; set f2 [split $f1 "," ]; set f3 [lindex $f2 0]; set f4 [split $f3 "="]; set f5 [lindex $f4 1]; return $f5
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