Forum Discussion
NoamRotter_1534
Nimbostratus
Jan 22, 2017Convert UPN from X509 to sAMAcountName
Hello,
I have this code to get UPN to a variable named session.logon.last.upn:
Code
set e_fields [split [mcget {session.ssl.cert.x509extension}] "\n"];
foreach qq $e_fields {
if {[string f...
Jan 22, 2017
You can add an 'AD query' agent to the access policy and use the following SearchFilter and set SAMAccountName as a 'Required Attribute'. After that you can read the SAMAccountName from 'session.ad.last.attr.sAMAccountName'.
(userPrincipalName=%{session.logon.last.upn})
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