When querying LDAP for users in recursive groups using MemberOf attribute, no results are returned
Symptom
When trying to perform a Directory Mapping LDAP query for users in recursive groups through MemberOf attribute, the query does not return any result.
If the user object is a member of GroupA and GroupA is a member of GroupB, when performing an LDAP search for users as MemberOf GroupB, no result would be returned.
Environment
10.5;10.10;11.5;11.6;11.7;12.2;12.6;13.0 Privileged Access Manager (PAM, self-hosted) Vault Server Vault
Cause
The group recursive search option (enabled by the GroupRecursiveSearch parameter configured from the LDAP integration options), handles search for Group within Group scenario, but not for users within Group within Group scenario.
Resolution
In the query filter, specify the full DN of the Group that actually contains the user objects.
Additional Information
Details
SYMPTOM:
When trying to perform a Directory Mapping LDAP query for users in recursive groups through MemberOf attribute, the query does not return any result.
If the user object is a member of GroupA and GroupA is a member
of GroupB, when performing an LDAP search for users as MemberOf GroupB,
no result would be returned.
PROBLEM:
The group recursive search option (enabled by the GroupRecursiveSearch parameter configured from the MicrosoftADProfile.ini file prior to ver 7.0 and directly form the LDAP integration options in ver 7.0 onwards), handles search for Group within Group scenario, but not for users within Group within Group scenario.
SOLUTION:
In the query filter, specify the full DN of the Group that actually contains the user objects.