2002-06-13 11:59:10 +08:00
|
|
|
.TH SLURPD 8C "RELEASEDATE" "OpenLDAP LDVERSION"
|
1999-09-12 12:41:47 +08:00
|
|
|
.\" $OpenLDAP$
|
2006-01-04 07:11:52 +08:00
|
|
|
.\" Copyright 1998-2006 The OpenLDAP Foundation All Rights Reserved.
|
1999-09-12 12:41:47 +08:00
|
|
|
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
|
1998-08-09 08:43:13 +08:00
|
|
|
.SH NAME
|
|
|
|
slurpd \- Standalone LDAP Update Replication Daemon
|
|
|
|
.SH SYNOPSIS
|
1998-08-19 10:38:35 +08:00
|
|
|
.B LIBEXECDIR/slurpd [\-d debug\-level]
|
1998-08-09 08:43:13 +08:00
|
|
|
.B [\-f slapd\-config\-file] [\-r slapd\-replog\-file]
|
2005-05-05 05:35:35 +08:00
|
|
|
.B [\-t temp\-dir] [\-o]
|
1998-08-09 08:43:13 +08:00
|
|
|
.B
|
|
|
|
.SH DESCRIPTION
|
|
|
|
.LP
|
|
|
|
.B Slurpd
|
|
|
|
is used to propagate changes from one slapd database to another. If
|
|
|
|
slapd is configured to produce a replication log,
|
|
|
|
.B slurpd
|
|
|
|
reads that
|
|
|
|
replication log and sends the changes to the slave
|
|
|
|
.B slapd
|
|
|
|
instances
|
|
|
|
via the LDAP protocol.
|
|
|
|
.B slurpd
|
|
|
|
is typically invoked at boot time, usually out of
|
|
|
|
.BR /etc/rc.local .
|
|
|
|
.LP
|
|
|
|
Upon startup,
|
|
|
|
.B slurpd
|
|
|
|
normally forks and disassociates itself from the invoking tty,
|
|
|
|
then reads the replication log (given either by the
|
|
|
|
.I replogfile
|
|
|
|
directive in the
|
|
|
|
.B slapd
|
|
|
|
config file, or by the
|
|
|
|
.RB \- r
|
|
|
|
command-line option).
|
|
|
|
If the replication log file does not exist or is empty,
|
|
|
|
.B slurpd
|
|
|
|
goes to sleep. It periodically wakes up and checks to see if there
|
2005-07-04 14:57:10 +08:00
|
|
|
are any changes to be propagated.
|
1998-08-09 08:43:13 +08:00
|
|
|
.LP
|
|
|
|
When
|
|
|
|
.B slurpd
|
|
|
|
notices that there are changes to propagate to slave
|
|
|
|
.B slapd
|
|
|
|
instances, it locks the replication log, makes its own private copy,
|
|
|
|
releases the lock, and forks one copy of itself for each replica
|
|
|
|
.B slapd
|
|
|
|
to be updated. Each child process binds to the slave
|
|
|
|
.B slapd
|
|
|
|
as the
|
|
|
|
DN given by the
|
|
|
|
.I binddn
|
|
|
|
option to the
|
|
|
|
.I replica
|
|
|
|
directive in the
|
|
|
|
.B slapd
|
|
|
|
config file, and sends the changes.
|
|
|
|
.LP
|
|
|
|
See
|
|
|
|
.BR slapd (8)
|
|
|
|
for details on the standalone LDAP daemon.
|
2002-07-24 11:11:58 +08:00
|
|
|
.LP
|
|
|
|
Note that slurpd reads
|
|
|
|
.B replication
|
|
|
|
directive from
|
|
|
|
.BR slapd.conf (5),
|
|
|
|
but uses
|
|
|
|
.BR ldap.conf (5)
|
|
|
|
to obtain other configuration settings (such as TLS settings).
|
1998-08-09 08:43:13 +08:00
|
|
|
.SH OPTIONS
|
|
|
|
.TP
|
|
|
|
.BI \-d " debug\-level"
|
|
|
|
Turn on debugging as defined by
|
|
|
|
.I debug\-level.
|
1999-09-05 04:24:40 +08:00
|
|
|
If this option is specified, even with a zero argument,
|
1998-08-09 08:43:13 +08:00
|
|
|
.B slurpd
|
|
|
|
will not fork or disassociate from the invoking terminal. Some general
|
|
|
|
operation and status messages are printed for any value of \fIdebug\-level\fP.
|
|
|
|
\fIdebug\-level\fP is taken as a bit string, with each bit corresponding to a
|
|
|
|
different kind of debugging information. See <ldap.h> for details.
|
|
|
|
.TP
|
|
|
|
.BI \-f " slapd\-config\-file"
|
|
|
|
Specifies the slapd configuration file. The default is
|
|
|
|
.BR ETCDIR/slapd.conf .
|
|
|
|
.TP
|
|
|
|
.BI \-r " slapd\-replog\-file"
|
|
|
|
Specifies the name of the
|
|
|
|
.B slapd
|
|
|
|
replication logfile. Normally, the name
|
|
|
|
of the replication log file is read from the
|
|
|
|
.B slapd
|
2000-10-17 06:19:29 +08:00
|
|
|
configuration file. The file should be located in a directory
|
|
|
|
with limited read/write/execute access.
|
1998-08-09 08:43:13 +08:00
|
|
|
The
|
|
|
|
.B \-r
|
|
|
|
option allows you to override this. In conjunction with the
|
|
|
|
.B \-o
|
|
|
|
option, you can process a replication log file in a "one\-shot" mode. For
|
|
|
|
example, if
|
|
|
|
.B slurpd
|
|
|
|
has encountered errors in processing a replication log,
|
|
|
|
you can run it in one\-shot mode and give the rejection file name as
|
|
|
|
the argument to the \-r option, once you've resolved the problem which caused
|
|
|
|
the replication to fail.
|
|
|
|
.TP
|
|
|
|
.B \-o
|
|
|
|
Run in "one\-shot" mode. Normally,
|
|
|
|
.B slurpd
|
|
|
|
processes the replog file
|
|
|
|
and then watches for more replication entries to be appended. In
|
|
|
|
one\-shot mode,
|
|
|
|
.B slurpd
|
|
|
|
processes a replication log and exits.
|
|
|
|
.TP
|
|
|
|
.BI \-t " temp\-dir"
|
|
|
|
.B slurpd
|
|
|
|
copies the replication log to a working directory before processing it.
|
2000-10-17 06:19:29 +08:00
|
|
|
The directory permissions should limit read/write/execute access as
|
|
|
|
temporary files may contain sensitive information.
|
1998-08-09 08:43:13 +08:00
|
|
|
This option allows you to specify the location of these temporary files.
|
|
|
|
The default is
|
2000-08-10 10:52:01 +08:00
|
|
|
.BR LOCALSTATEDIR/openldap-slurp .
|
1998-08-09 08:43:13 +08:00
|
|
|
.SH EXAMPLES
|
|
|
|
To start
|
|
|
|
.I slurpd
|
|
|
|
and have it fork and detach from the terminal and process
|
|
|
|
the replication logs generated by
|
|
|
|
.I slapd,
|
|
|
|
just type:
|
|
|
|
.LP
|
|
|
|
.nf
|
|
|
|
.ft tt
|
1998-08-19 10:38:35 +08:00
|
|
|
LIBEXECDIR/slurpd
|
1998-08-09 08:43:13 +08:00
|
|
|
.ft
|
|
|
|
.fi
|
|
|
|
.LP
|
|
|
|
To start
|
|
|
|
.I slurpd
|
|
|
|
with an alternate
|
|
|
|
.I slapd
|
|
|
|
configuration file, and turn
|
|
|
|
on voluminous debugging which will be printed on standard error, type:
|
|
|
|
.LP
|
|
|
|
.nf
|
|
|
|
.ft tt
|
1998-08-19 10:38:35 +08:00
|
|
|
LIBEXECDIR/slurpd -f ETCDIR/slapd.conf -d 255
|
1998-08-09 08:43:13 +08:00
|
|
|
.ft
|
|
|
|
.fi
|
|
|
|
.LP
|
|
|
|
.SH "SEE ALSO"
|
|
|
|
.BR ldap (3),
|
2002-07-24 11:11:58 +08:00
|
|
|
.BR ldap.conf (5),
|
|
|
|
.BR slapd.conf (5),
|
1998-08-09 08:43:13 +08:00
|
|
|
.BR slapd.replog (5),
|
|
|
|
.BR slapd (8)
|
|
|
|
.LP
|
2000-08-25 07:18:06 +08:00
|
|
|
"OpenLDAP Administrator's Guide" (http://www.OpenLDAP.org/doc/admin/)
|
1998-10-25 09:41:42 +08:00
|
|
|
.SH ACKNOWLEDGEMENTS
|
2003-06-29 23:34:32 +08:00
|
|
|
.B OpenLDAP
|
1998-10-25 09:41:42 +08:00
|
|
|
is developed and maintained by The OpenLDAP Project (http://www.openldap.org/).
|
2003-06-29 23:34:32 +08:00
|
|
|
.B OpenLDAP
|
1998-10-25 09:41:42 +08:00
|
|
|
is derived from University of Michigan LDAP 3.3 Release.
|