SLAPO-MEMBEROF(5)
π SLAPO-MEMBEROF π
okay bestie, gather round, because this is the Reverse Group Membership overlay for slapd, and honestly? it's giving personal-assistant energy. it's the file formats manual page for slapo-memberof, and yes we're doing this whole thing together, no skimming, i see you π
β¨ NAME β¨
slapo-memberof β the Reverse Group Membership overlay to slapd. that's it, that's the name, and it ate π«Ά
πΈ SYNOPSIS πΈ
/etc/openldap/slapd.conf
π DESCRIPTION π
so the memberof overlay is a little bestie you attach to slapd(8), and its whole job is automatic reverse group membership maintenance. the way it works is: any time a group entry gets modified, its members get modified right along with it, as appropriate, to keep a DN-valued "is member of" attribute updated with the DN of the group. it's literally keeping both sides of the friendship bracelet in sync π
lowkey important heads-up: the dynlist overlay can also provide this functionality, and it may be suitable for less demanding environments. so like, there are options, you're not locked in, do what feels right β¨
π¦ CONFIGURATION π¦
here's the vibe check on config: the directives that are specific to the memberof overlay must be prefixed by memberof-, so nothing collides with directives specific to the underlying database or to other stacked overlays. namespacing, we love to see it.
overlay memberofβ this directive adds thememberofoverlay to the current database; peepslapd.conf(5)for the deets.
the following slapd.conf configuration options are defined for the memberof overlay. every single one, bestie, we're not skipping a crumb π
memberof-group-oc<group-oc>β the value<group-oc>is the name of theobjectClassthat triggers the reverse group membership update. it defaults togroupOfNames.memberof-member-ad<member-ad>β the value<member-ad>is the name of the attribute that holds the names of the members in the group objects; it must be DN-valued. defaults tomember.memberof-memberof-ad<memberof-ad>β the value<memberof-ad>is the name of the attribute that holds the names of the groups an entry is member of; it must be DN-valued. its contents get automatically updated by the overlay, so don't you dare mess with it. defaults tomemberOf.memberof-dn<dn>β the value<dn>contains the DN used asmodifiersNamefor internal modifications performed to update the reverse group membership. defaults to therootdnof the underlying database.memberof-dangling {ignore, drop, error}β this one decides what the overlay does when, during a modification, it runs into dangling references. default isignore, which may leave dangling references just chillin' there (chaotic, but valid). the other options aredrop, which discards those modifications that would result in dangling references, anderror, which makes modifications that would result in dangling references fail. pick your fighter.memberof-dangling-error<error-code>β ifmemberof-danglingis set toerror, you can use this config parameter to modify the response code returned in case of violation. it defaults to"constraint violation", but heads up: other implementations are known to return"no such object"instead. iykyk.memberof-refint {true|FALSE}β this option determines whether the overlay will try to preserve referential integrity or not. if set toTRUE, when an entry containing values of the"is member of"attribute is modified, the corresponding groups are modified as well. β οΈ but note: while this overlay handles renames of individual groups and members, it does not handle changes due to subtree renames. for referential integrity on subtree renames you should also be running theslapo-refint(5)overlay. team effort, besties π€memberof-addcheck {true|FALSE}β this option determines whether the overlay will check newly added entries for membership in any existing groups. this check is useful if populated groups get created in the directory before the entries they reference. the situation often occurs during replication, which may replicate entries in random order (replication said "shuffle π²"). if set toTRUE, everyAddoperation will search for groups referencing the added entry and populate itsmemberofattribute with the group DNs. β οΈ note:memberof-danglingmust be left on its default setting ofignorefor this option to work. no cap.
the memberof overlay may be used with any backend that provides full read-write functionality, but it's mainly intended for use with local storage backends. the maintenance operations it performs are internal to the server on which the overlay is configured, and they are never replicated, periodt. consumer servers should be configured with their own instances of the memberOf overlay if it's desired to maintain these memberOf attributes on the consumers. consumers must also be configured to exclude the memberof attribute from replication. (see the exattrs option in the consumer configuration.) π
π FILES π
/etc/openldap/slapd.confβ defaultslapdconfiguration file
β³ BACKWARD COMPATIBILITY β³
the memberof overlay got a glow-up rework with the 2.5 release so it uses a consistent namespace like the other overlays. iconic. as a side-effect, the following cn=config parameters are deprecated and will be removed in a future release: olcMemberOf is replaced with olcMemberOfConfig. so if you're still on the old name, bestie, it's time to migrate π
π SEE ALSO π
slapo-dynlist(5), slapo-refint(5), slapd.conf(5), slapd-config(5), slapd(8). and btw, the slapo-memberof(5) overlay supports dynamic configuration via back-config β¨
π ACKNOWLEDGEMENTS π
this module was written in 2005 by Pierangelo Masarati for SysNet s.n.c. β a legend, a real one, we stan ππ
and that's the whole page, bestie, you made it to the end, so proud π«Ά
OpenLDAP 2.7.2 Β· 2026/10/21 β mwah, go forth and keep those group memberships in sync, ily πβ¨π
π¦ where this page comes from
- arch rolling: openldap 2.7.2-2 Β· OLDAP-2.8
- Copyright 1998-2026 The OpenLDAP Foundation, All Rights Reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms