Filtering sun ldap groups

Filtering sun ldap groups

Posted By: pmietlicki

Published to Work on Mar 29, 2017

To filter users from a specific group inside a LDAP directory, we generally use the "memberOf" attribute. However, it is not the case for all directories, some are even completely lacking this feature.

This attribute is yet handy because it allows to group users easily. This feeds an attribute of the LDAP entry that contains all the user groups.

For sun ldap directories (Sun Directory Server), the attribute to use is "isMemberOf", for example :

(isMemberOf=cn=DSI,ou=Groups,ou=ac-academie,ou=education,o=gouv,c=fr)

Simply specify a filter containing the groups to be filtered into the suitable field ("LDAP Filter", etc.).

To know : this will only work with directories that use 6.3 version or later of sun ldap

Source : http://forums.devshed.com/ldap-programming-76/group-membership-in-sun-one-ldap-599717.html

Tags:

Archive