To determine all of the members for a static group, retrieve the group entry,
including the membership attribute.
To retrieve attributes from member entries, search all users whose
isMemberOfattribute contains the group DN, returning the attributes desired.
To retrieve additional information about the members, such as attributes from member entries, issue a separate search for each member to retrieve the user entry and the desired attributes.
This table contains the search criteria to retrieve the list of all members for the group
$ bin/ldapsearch --baseDN "cn=Test Group,ou=Groups,dc=example,dc=com" \ --searchScope base "(objectclass=*)" uniqueMember
The returned entry includes the DNs of all users that are members of that group.
Page created: 26 Jul 2021 |
Page updated: 14 Jan 2022