2003-04-09 07:46:56 +08:00
|
|
|
.TH SLAPD-MONITOR 5 "RELEASEDATE" "OpenLDAP LDVERSION"
|
2007-01-03 04:00:42 +08:00
|
|
|
.\" Copyright 1998-2007 The OpenLDAP Foundation All Rights Reserved.
|
2003-04-09 07:46:56 +08:00
|
|
|
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
|
|
|
|
.\" $OpenLDAP$
|
|
|
|
.SH NAME
|
2007-07-25 03:11:39 +08:00
|
|
|
slapd-monitor \- Monitor backend to slapd
|
2003-04-09 07:46:56 +08:00
|
|
|
.SH SYNOPSIS
|
|
|
|
ETCDIR/slapd.conf
|
|
|
|
.SH DESCRIPTION
|
2005-07-15 23:46:30 +08:00
|
|
|
The
|
|
|
|
.B monitor
|
|
|
|
backend to
|
2003-04-09 07:46:56 +08:00
|
|
|
.BR slapd (8)
|
|
|
|
is not an actual database; if enabled, it is automatically generated
|
2005-07-15 23:46:30 +08:00
|
|
|
and dynamically maintained by
|
|
|
|
.B slapd
|
|
|
|
with information about the running status of the daemon.
|
2005-07-07 16:21:18 +08:00
|
|
|
.LP
|
|
|
|
To inspect all monitor information, issue a subtree search with base
|
|
|
|
cn=Monitor, requesting that attributes "+" and "*" are returned.
|
|
|
|
The monitor backend produces mostly operational attributes, and LDAP
|
|
|
|
only returns operational attributes that are explicitly requested.
|
|
|
|
Requesting attribute "+" is an extension which requests all operational
|
|
|
|
attributes.
|
2003-04-09 07:46:56 +08:00
|
|
|
.SH CONFIGURATION
|
|
|
|
These
|
|
|
|
.B slapd.conf
|
2005-07-15 23:46:30 +08:00
|
|
|
options apply to the
|
|
|
|
.B monitor
|
|
|
|
backend database.
|
2003-04-09 07:46:56 +08:00
|
|
|
That is, they must follow a "database monitor" line and come before any
|
|
|
|
subsequent "backend" or "database" lines.
|
2005-07-07 16:21:18 +08:00
|
|
|
.LP
|
2005-07-15 23:46:30 +08:00
|
|
|
As opposed to most databases, the
|
|
|
|
.B monitor
|
|
|
|
database can be instantiated only once, i.e. only one occurrence
|
|
|
|
of "database monitor" can occur in the
|
2003-04-09 07:46:56 +08:00
|
|
|
.BR slapd.conf (5)
|
|
|
|
file.
|
|
|
|
Moreover, the suffix of the database cannot be explicitly set by means
|
|
|
|
of the
|
|
|
|
.B suffix
|
2005-07-15 23:46:30 +08:00
|
|
|
directive.
|
|
|
|
The suffix is automatically set
|
2003-05-19 07:26:30 +08:00
|
|
|
to "\fIcn=Monitor\fP".
|
|
|
|
.LP
|
2003-04-09 07:46:56 +08:00
|
|
|
The
|
|
|
|
.B monitor
|
|
|
|
database honors the
|
|
|
|
.B rootdn
|
|
|
|
and the
|
|
|
|
.B rootpw
|
|
|
|
directives, and the usual ACL directives, e.g. the
|
|
|
|
.B access
|
|
|
|
directive.
|
2005-07-15 23:46:30 +08:00
|
|
|
.\".LP
|
|
|
|
.\"The following directives can be used:
|
|
|
|
.\".TP
|
|
|
|
.\".BI l \ <locality>
|
|
|
|
.\"The additional argument \fI<locality>\fP,
|
|
|
|
.\"a string, is added to the "\fIcn=Monitor\fP" entry as value of the
|
|
|
|
.\".B l
|
|
|
|
.\"attribute (Note: this may be subjected to changes).
|
2003-05-19 07:26:30 +08:00
|
|
|
.LP
|
2003-04-09 07:46:56 +08:00
|
|
|
Other database options are described in the
|
|
|
|
.BR slapd.conf (5)
|
|
|
|
manual page.
|
|
|
|
.SH USAGE
|
|
|
|
The usage is:
|
2003-05-19 07:26:30 +08:00
|
|
|
.TP
|
2005-07-15 23:46:30 +08:00
|
|
|
1) enable the \fBmonitor\fP backend at configure:
|
2003-04-09 07:46:56 +08:00
|
|
|
.LP
|
|
|
|
.RS
|
|
|
|
.nf
|
|
|
|
configure --enable-monitor
|
|
|
|
.fi
|
|
|
|
.RE
|
2003-05-19 07:26:30 +08:00
|
|
|
.TP
|
2005-07-15 23:46:30 +08:00
|
|
|
2) activate the \fBmonitor\fP database in the \fBslapd.conf\fP(5) file:
|
2003-04-09 07:46:56 +08:00
|
|
|
.LP
|
|
|
|
.RS
|
|
|
|
.nf
|
2003-06-29 23:34:32 +08:00
|
|
|
database monitor
|
2003-04-09 07:46:56 +08:00
|
|
|
.fi
|
|
|
|
.RE
|
2003-05-19 07:26:30 +08:00
|
|
|
.TP
|
2005-07-15 23:46:30 +08:00
|
|
|
3) add ACLs as detailed in \fBslapd.access\fP(5) to control access to the database, e.g.:
|
2003-04-09 07:46:56 +08:00
|
|
|
.LP
|
|
|
|
.RS
|
|
|
|
.nf
|
|
|
|
access to dn.subtree="cn=Monitor"
|
|
|
|
by dn.exact="uid=Admin,dc=my,dc=org" write
|
|
|
|
by users read
|
|
|
|
by * none
|
|
|
|
.fi
|
|
|
|
.RE
|
2003-05-19 07:26:30 +08:00
|
|
|
.TP
|
|
|
|
4) ensure that the \fBcore.schema\fP file is loaded.
|
2005-07-15 23:46:30 +08:00
|
|
|
The
|
|
|
|
.B monitor
|
|
|
|
backend relies on some standard track attributeTypes
|
2003-05-19 07:26:30 +08:00
|
|
|
that must be already defined when the backend is started.
|
2005-04-09 07:39:05 +08:00
|
|
|
.SH ACCESS CONTROL
|
|
|
|
The
|
|
|
|
.B monitor
|
|
|
|
backend honors access control semantics as indicated in
|
|
|
|
.BR slapd.access (5),
|
|
|
|
including the
|
|
|
|
.B disclose
|
|
|
|
access privilege, on all currently implemented operations.
|
2003-05-19 07:26:30 +08:00
|
|
|
.SH KNOWN LIMITATIONS
|
2005-07-15 23:46:30 +08:00
|
|
|
The
|
|
|
|
.B monitor
|
|
|
|
backend does not honor size/time limits in search operations.
|
2003-04-09 07:46:56 +08:00
|
|
|
.SH FILES
|
|
|
|
.TP
|
2005-07-15 23:46:30 +08:00
|
|
|
.B ETCDIR/slapd.conf
|
2003-04-09 07:46:56 +08:00
|
|
|
default slapd configuration file
|
|
|
|
.SH SEE ALSO
|
|
|
|
.BR slapd.conf (5),
|
|
|
|
.BR slapd.access (5),
|
|
|
|
.BR slapd (8),
|
|
|
|
.BR ldap (3).
|
2007-01-03 04:25:16 +08:00
|
|
|
.SH ACKNOWLEDGEMENTS
|
|
|
|
.so ../Project
|