APM variable assign examples
Problem this snippet solves: APM variable assign is a powerful tool to manipulate APM variable during policy evaluation supporting tcl code.
On Devcentral answers, there are lots of variable assig...
Updated Jun 06, 2023
Version 2.0Stanislas_Piro2
Cumulonimbus
Joined January 04, 2011
Joe_Lupo_283884
Feb 15, 2019Nimbostratus
Stanislas,
I want to set the username to the CN in the session.ssl.cert.subject, BUT I just want a specific part of the CN, not the whole thing. my CN's look like this:
CN=LAST.FIRST.MIDDLE.1122334455
I just want the "LAST.FIRST" to be set to the session.logon.last.username
Additionally the entire cert subject has this format: (the "X" does not represent exact character count)
C=US, O=XXXX, OU=XXXX, OU=XXXX, OU=XXXX, CN=LAST.FIRST.MIDDLE.1122334455
Can you help?
Joe