2007-08-24 10:46:55 +08:00
|
|
|
.TH SLAPO-MEMBEROF 5 "RELEASEDATE" "OpenLDAP LDVERSION"
|
2011-01-05 08:42:37 +08:00
|
|
|
.\" Copyright 1998-2011 The OpenLDAP Foundation, All Rights Reserved.
|
2007-08-24 10:46:55 +08:00
|
|
|
.\" Copying restrictions apply. See the COPYRIGHT file.
|
|
|
|
.\" $OpenLDAP$
|
|
|
|
.SH NAME
|
2009-06-03 08:43:44 +08:00
|
|
|
slapo\-memberof \- Reverse Group Membership overlay to slapd
|
2007-08-24 10:46:55 +08: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.
|
|
|
|
|
|
|
|
.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-25 02:20:12 +08:00
|
|
|
configuration options are defined for the memberof overlay.
|
2007-08-24 10:46:55 +08:00
|
|
|
|
|
|
|
.TP
|
2009-06-03 08:43:44 +08:00
|
|
|
.BI memberof\-group\-oc \ <group-oc>
|
2007-08-24 10:46:55 +08:00
|
|
|
The value
|
2007-12-28 08:38:27 +08:00
|
|
|
.I <group-oc>
|
2007-08-24 10:46:55 +08:00
|
|
|
is the name of the objectClass that triggers the reverse group membership
|
|
|
|
update.
|
|
|
|
It defaults to \fIgroupOfNames\fP.
|
|
|
|
|
|
|
|
.TP
|
2009-06-03 08:43:44 +08:00
|
|
|
.BI memberof\-member\-ad \ <member-ad>
|
2007-08-24 10:46:55 +08:00
|
|
|
The value
|
2007-12-28 08:38:27 +08:00
|
|
|
.I <member-ad>
|
2007-08-24 10:46:55 +08: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-03 08:43:44 +08:00
|
|
|
.BI memberof\-memberof\-ad \ <memberof-ad>
|
2007-08-24 10:46:55 +08:00
|
|
|
The value
|
2007-12-28 08:38:27 +08:00
|
|
|
.I <memberof-ad>
|
2007-08-24 10:46:55 +08: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-03 08:43:44 +08:00
|
|
|
.BI memberof\-dn \ <dn>
|
2007-08-24 10:46:55 +08:00
|
|
|
The value
|
2007-12-28 08:38:27 +08:00
|
|
|
.I <dn>
|
2007-08-24 10:46:55 +08: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-03 08:43:44 +08:00
|
|
|
.BI "memberof\-dangling {" ignore ", " drop ", " error "}"
|
2007-08-24 10:46:55 +08:00
|
|
|
This option determines the behavior of the overlay when, during
|
|
|
|
a modification, it encounters dangling references.
|
|
|
|
The default is
|
2007-12-28 08:38:27 +08:00
|
|
|
.IR ignore ,
|
2007-08-24 10:46:55 +08:00
|
|
|
which may leave dangling references.
|
|
|
|
Other options are
|
2007-12-28 08:38:27 +08:00
|
|
|
.IR drop ,
|
2007-08-24 10:46:55 +08:00
|
|
|
which discards those modifications that would result in dangling
|
|
|
|
references, and
|
2007-12-28 08:38:27 +08:00
|
|
|
.IR error ,
|
2007-08-24 10:46:55 +08:00
|
|
|
which causes modifications that would result in dangling references
|
|
|
|
to fail.
|
|
|
|
|
|
|
|
.TP
|
2009-06-03 08:43:44 +08:00
|
|
|
.BI memberof\-dangling\-error \ <error-code>
|
2007-12-28 08:38:27 +08:00
|
|
|
If
|
2009-06-03 08:43:44 +08:00
|
|
|
.BR memberof\-dangling
|
2007-12-28 08:38:27 +08: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-03 08:43:44 +08:00
|
|
|
.BI "memberof\-refint {" true "|" FALSE "}"
|
2007-08-24 10:46:55 +08:00
|
|
|
This option determines whether the overlay will try to preserve
|
|
|
|
referential integrity or not.
|
|
|
|
If set to
|
2007-12-28 08:38:27 +08:00
|
|
|
.IR TRUE ,
|
2007-08-24 10:46:55 +08:00
|
|
|
when an entry containing values of the "is member of" attribute is modified,
|
|
|
|
the corresponding groups are modified as well.
|
|
|
|
|
|
|
|
.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-25 02:20:12 +08:00
|
|
|
with local storage backends. The maintenance operations it performs
|
|
|
|
are internal to the server on which the overlay is configured and
|
|
|
|
are never replicated. Replica servers should be configured with their
|
|
|
|
own instances of the memberOf overlay if it is desired to maintain
|
|
|
|
these memberOf attributes on the replicas.
|
2007-08-24 10:46:55 +08:00
|
|
|
|
|
|
|
.SH FILES
|
|
|
|
.TP
|
|
|
|
ETCDIR/slapd.conf
|
|
|
|
default slapd configuration file
|
|
|
|
.SH SEE ALSO
|
|
|
|
.BR slapd.conf (5),
|
2009-01-30 08:23:58 +08:00
|
|
|
.BR slapd\-config (5),
|
2007-08-24 10:46:55 +08:00
|
|
|
.BR slapd (8).
|
|
|
|
The
|
2009-06-03 08:43:44 +08:00
|
|
|
.BR slapo\-memberof (5)
|
2007-08-24 10:46:55 +08: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.
|
|
|
|
|