Groups are a quick way of giving users common access to certain features or functionality within an LDAP directory. The access to directive (cn=config, olcAccess) contains a group specific variant in the <who> clause for just this purpose. The actual rights assigned to the group are also defined in the Access to directive (cn=config, olcAccess). Groups use the groupofnames objectClass.
Note: Groups defined using groupOfNames are essentially static and require explicit action to define each group member. Where the number of group members are either very long or change very frequently it can become a serious pain. LDAP also provides a non-standarized (there is no RFC), but widely implemented, feature called Dynamic Groups using the groupOfURLs objectClass.
The following LDIF fragments shows building a group called itpeople who could be given privileges to access or change passwords or configuration parameters in user entries. The individual group member entries are assumed to already exist in the directory under a classic ou=people branch. This configuration creates a separate branch called groups under which is placed the itpeople group. The following diagram illustrates this organisation:
# LDIF fragment to create group branch under root dn: ou=groups,dc=example,dc=com objectclass:organizationalunit ou: groups description: generic groups branch # create the itpeople entry dn: cn=itpeople,ou=groups,dc=example,dc=com objectclass: groupofnames cn: itpeople description: IT security group # add the group members all of which are # assumed to exist under people member: cn=road runner,ou=people,dc=example,dc=com member: cn=micky mouse,ou=people,dc=example,dc=com ...
A DN of cn=itpeople,ou=groups,dc=example,dc=com will then reference all defined members of this group. Anyone logged in as 'micky mouse' can be assigned itpeople privileges using an appropriate access to directive (cn=config, olcAccess). See a worked example of group usage.
Problems, comments, suggestions, corrections (including broken links) or something to add? Please take the time from a busy life to 'mail us' (at top of screen), the webmaster (below) or info-support at zytrax. You will have a warm inner glow for the rest of the day.
3 ldap objects
4 install ldap
7 replica & refer
10 ldap api
14 ldap tools
notes & info
rfc's & x.500
This work is licensed under a Creative Commons License.
If you are happy it's OK - but your browser is giving a less than optimal experience on our site. You could, at no charge, upgrade to a W3C STANDARDS COMPLIANT browser such as Firefox