Not terribly experience with LDAP here. Looking for some help crafting either a LDAP dynamic group or LDAP query that I can use to create a dynamic group.
Here is the goal: a groupOfNames
or groupOfURLs
containing all managers as members.
Managers are stored as manager
attributes on the people that are being managed. We can get a list of people with defined managers, and the DNs of those managers with the following query:
ldaps:///ou=users,dc=example,dc=com?manager?sub?(manager=*)
The problem here is that we're still returning the primary DN of the managed person rather than than manager so we'd end up with the wrong people in the group.
Is there a way to either make a groupOfURLs
that sources its members from the member
attribute instead OR write a subquery that follows the DNs in the manager attribute to return the managers as a result?
FWIW we're running OpenDJ, which is based on OpenDS.
Thanks in advance for any help!