2007-08-23 22:46:55 -04:00
|
|
|
.TH SLAPO-MEMBEROF 5 "RELEASEDATE" "OpenLDAP LDVERSION"
|
2022-01-07 13:40:00 -05:00
|
|
|
.\" Copyright 1998-2022 The OpenLDAP Foundation, All Rights Reserved.
|
2007-08-23 22:46:55 -04:00
|
|
|
.\" Copying restrictions apply. See the COPYRIGHT file.
|
|
|
|
|
.\" $OpenLDAP$
|
|
|
|
|
.SH NAME
|
2009-06-02 20:43:44 -04:00
|
|
|
slapo\-memberof \- Reverse Group Membership overlay to slapd
|
2007-08-23 22:46:55 -04:00
|
|
|
.SH SYNOPSIS
|
|
|
|
|
ETCDIR/slapd.conf
|
|
|
|
|
.SH DESCRIPTION
|
|
|
|
|
The
|
|
|
|
|
.B memberof
|
|
|
|
|
overlay to
|
|
|
|
|
.BR slapd (8)
|
|
|
|
|
allows automatic reverse group membership maintenance.
|
|
|
|
|
Any time a group entry is modified, its members are modified as appropriate
|
|
|
|
|
in order to keep a DN-valued "is member of" attribute updated with the DN
|
|
|
|
|
of the group.
|
2021-02-18 08:28:37 -05:00
|
|
|
.LP
|
|
|
|
|
Note that this overlay is deprecated and support will be dropped in future
|
|
|
|
|
OpenLDAP releases. Installations should use the \fBdynlist\fP
|
|
|
|
|
overlay instead. Using this overlay in a replicated environment is especially
|
|
|
|
|
discouraged.
|
2007-08-23 22:46:55 -04:00
|
|
|
|
|
|
|
|
.SH CONFIGURATION
|
|
|
|
|
The config directives that are specific to the
|
|
|
|
|
.B memberof
|
|
|
|
|
overlay must be prefixed by
|
|
|
|
|
.BR memberof\- ,
|
|
|
|
|
to avoid potential conflicts with directives specific to the underlying
|
|
|
|
|
database or to other stacked overlays.
|
|
|
|
|
|
|
|
|
|
.TP
|
|
|
|
|
.B overlay memberof
|
|
|
|
|
This directive adds the memberof overlay to the current database; see
|
|
|
|
|
.BR slapd.conf (5)
|
|
|
|
|
for details.
|
|
|
|
|
|
|
|
|
|
.LP
|
|
|
|
|
The following
|
|
|
|
|
.B slapd.conf
|
2011-05-24 14:20:12 -04:00
|
|
|
configuration options are defined for the memberof overlay.
|
2007-08-23 22:46:55 -04:00
|
|
|
|
|
|
|
|
.TP
|
2009-06-02 20:43:44 -04:00
|
|
|
.BI memberof\-group\-oc \ <group-oc>
|
2007-08-23 22:46:55 -04:00
|
|
|
The value
|
2007-12-27 19:38:27 -05:00
|
|
|
.I <group-oc>
|
2007-08-23 22:46:55 -04:00
|
|
|
is the name of the objectClass that triggers the reverse group membership
|
|
|
|
|
update.
|
|
|
|
|
It defaults to \fIgroupOfNames\fP.
|
|
|
|
|
|
|
|
|
|
.TP
|
2009-06-02 20:43:44 -04:00
|
|
|
.BI memberof\-member\-ad \ <member-ad>
|
2007-08-23 22:46:55 -04:00
|
|
|
The value
|
2007-12-27 19:38:27 -05:00
|
|
|
.I <member-ad>
|
2007-08-23 22:46:55 -04:00
|
|
|
is the name of the attribute that contains the names of the members
|
|
|
|
|
in the group objects; it must be DN-valued.
|
|
|
|
|
It defaults to \fImember\fP.
|
|
|
|
|
|
|
|
|
|
.TP
|
2009-06-02 20:43:44 -04:00
|
|
|
.BI memberof\-memberof\-ad \ <memberof-ad>
|
2007-08-23 22:46:55 -04:00
|
|
|
The value
|
2007-12-27 19:38:27 -05:00
|
|
|
.I <memberof-ad>
|
2007-08-23 22:46:55 -04:00
|
|
|
is the name of the attribute that contains the names of the groups
|
|
|
|
|
an entry is member of; it must be DN-valued. Its contents are
|
|
|
|
|
automatically updated by the overlay.
|
|
|
|
|
It defaults to \fImemberOf\fP.
|
|
|
|
|
|
|
|
|
|
.TP
|
2009-06-02 20:43:44 -04:00
|
|
|
.BI memberof\-dn \ <dn>
|
2007-08-23 22:46:55 -04:00
|
|
|
The value
|
2007-12-27 19:38:27 -05:00
|
|
|
.I <dn>
|
2007-08-23 22:46:55 -04:00
|
|
|
contains the DN that is used as \fImodifiersName\fP for internal
|
|
|
|
|
modifications performed to update the reverse group membership.
|
|
|
|
|
It defaults to the \fIrootdn\fP of the underlying database.
|
|
|
|
|
|
|
|
|
|
.TP
|
2009-06-02 20:43:44 -04:00
|
|
|
.BI "memberof\-dangling {" ignore ", " drop ", " error "}"
|
2007-08-23 22:46:55 -04:00
|
|
|
This option determines the behavior of the overlay when, during
|
|
|
|
|
a modification, it encounters dangling references.
|
|
|
|
|
The default is
|
2007-12-27 19:38:27 -05:00
|
|
|
.IR ignore ,
|
2007-08-23 22:46:55 -04:00
|
|
|
which may leave dangling references.
|
|
|
|
|
Other options are
|
2007-12-27 19:38:27 -05:00
|
|
|
.IR drop ,
|
2007-08-23 22:46:55 -04:00
|
|
|
which discards those modifications that would result in dangling
|
|
|
|
|
references, and
|
2007-12-27 19:38:27 -05:00
|
|
|
.IR error ,
|
2007-08-23 22:46:55 -04:00
|
|
|
which causes modifications that would result in dangling references
|
|
|
|
|
to fail.
|
|
|
|
|
|
|
|
|
|
.TP
|
2009-06-02 20:43:44 -04:00
|
|
|
.BI memberof\-dangling\-error \ <error-code>
|
2007-12-27 19:38:27 -05:00
|
|
|
If
|
2009-06-02 20:43:44 -04:00
|
|
|
.BR memberof\-dangling
|
2007-12-27 19:38:27 -05:00
|
|
|
is set to
|
|
|
|
|
.IR error ,
|
|
|
|
|
this configuration parameter can be used to modify the response code
|
|
|
|
|
returned in case of violation. It defaults to "constraint violation",
|
|
|
|
|
but other implementations are known to return "no such object" instead.
|
|
|
|
|
|
|
|
|
|
.TP
|
2009-06-02 20:43:44 -04:00
|
|
|
.BI "memberof\-refint {" true "|" FALSE "}"
|
2007-08-23 22:46:55 -04:00
|
|
|
This option determines whether the overlay will try to preserve
|
|
|
|
|
referential integrity or not.
|
|
|
|
|
If set to
|
2007-12-27 19:38:27 -05:00
|
|
|
.IR TRUE ,
|
2007-08-23 22:46:55 -04:00
|
|
|
when an entry containing values of the "is member of" attribute is modified,
|
|
|
|
|
the corresponding groups are modified as well.
|
|
|
|
|
|
2024-02-01 13:58:50 -05:00
|
|
|
.TP
|
|
|
|
|
.BI "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 are created in the directory before the entries
|
|
|
|
|
they reference. The situation often occurs during replication, which
|
|
|
|
|
may replicate entries in random order.
|
|
|
|
|
If set to
|
|
|
|
|
.IR TRUE ,
|
|
|
|
|
every Add operation will search for groups referencing the added
|
|
|
|
|
entry and populate its memberof attribute with the group DNs. Note
|
|
|
|
|
that
|
|
|
|
|
.BR memberof\-dangling
|
|
|
|
|
must be left on its default setting of
|
|
|
|
|
.I ignore
|
|
|
|
|
for this option to work.
|
|
|
|
|
|
2007-08-23 22:46:55 -04:00
|
|
|
.LP
|
|
|
|
|
The memberof overlay may be used with any backend that provides full
|
|
|
|
|
read-write functionality, but it is mainly intended for use
|
2011-05-24 14:20:12 -04:00
|
|
|
with local storage backends. The maintenance operations it performs
|
|
|
|
|
are internal to the server on which the overlay is configured and
|
2020-06-15 16:06:35 -04:00
|
|
|
are never replicated. Consumer servers should be configured with their
|
2011-05-24 14:20:12 -04:00
|
|
|
own instances of the memberOf overlay if it is desired to maintain
|
2024-02-01 13:58:50 -05:00
|
|
|
these memberOf attributes on the consumers.
|
2007-08-23 22:46:55 -04:00
|
|
|
|
|
|
|
|
.SH FILES
|
|
|
|
|
.TP
|
|
|
|
|
ETCDIR/slapd.conf
|
|
|
|
|
default slapd configuration file
|
2020-05-27 15:38:46 -04:00
|
|
|
.SH BACKWARD COMPATIBILITY
|
2021-02-17 12:28:33 -05:00
|
|
|
The memberof overlay has been reworked with the 2.5 release to use
|
2020-05-27 15:38:46 -04:00
|
|
|
a consistent namespace as with other overlays. As a side-effect the
|
|
|
|
|
following cn=config parameters are deprecated and will be removed in
|
|
|
|
|
a future release:
|
|
|
|
|
.B olcMemberOf
|
|
|
|
|
is replaced with olcMemberOfConfig
|
2007-08-23 22:46:55 -04:00
|
|
|
.SH SEE ALSO
|
2021-02-18 08:28:37 -05:00
|
|
|
.BR slapo-dynlist (5),
|
2007-08-23 22:46:55 -04:00
|
|
|
.BR slapd.conf (5),
|
2009-01-29 19:23:58 -05:00
|
|
|
.BR slapd\-config (5),
|
2007-08-23 22:46:55 -04:00
|
|
|
.BR slapd (8).
|
|
|
|
|
The
|
2009-06-02 20:43:44 -04:00
|
|
|
.BR slapo\-memberof (5)
|
2007-08-23 22:46:55 -04:00
|
|
|
overlay supports dynamic configuration via
|
|
|
|
|
.BR back-config .
|
|
|
|
|
.SH ACKNOWLEDGEMENTS
|
|
|
|
|
.P
|
|
|
|
|
This module was written in 2005 by Pierangelo Masarati for SysNet s.n.c.
|
|
|
|
|
|