Forum Discussion
AlexS_yb
Cirrocumulus
Apr 02, 2021ldap auth not setting %{session.ldap.last.attr.dn}
Hi I have a ldapauth followed by ldap query and the query is not working I have a search filter of uniquemember=%{session.ldap.last.attr.dn} But %{session.ldap.last.attr.dn} is not set ...
spalande
Nacreous
Apr 02, 2021Have you tried adding "dn" in required attribute under LDAP query properties? Alternatively, you can try with
"session.ldap.last.attr.memberOf" variable and works great to identify the group membership.
Below is the expression to check for the group membership -
expr {[string match -nocase {*group_name*} [mcget {session.ad.last.attr.memberOf}]] }
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