Forum Discussion
jfb_329380
Nimbostratus
Oct 12, 2017Use session.ldap.last.attr.userPrincipalName in an iRule
Hello,
In an iRule, I want to compare the userPrincipalName fetched from LDAP with the DN of an SSL certificate.
I have successfully extracted the email address from the certificate in a va...
Stanislas_Piro2
Cumulonimbus
Oct 12, 2017Hi,
are you sure the userPrincipalName is fetched by the LDAP query?
I recommend to do this check with variable assign instead of irule.
session.custom.result ==
expr {[mcget {session.ldap.last.attr.userPrincipalName}] == [mcget {session.cert.UPN}]}
this will return 1 if same value, 0 if different.
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
