openldap/doc/man/man8/slaptest.8

118 lines
2.5 KiB
Groff
Raw Normal View History

2004-03-18 08:07:24 +08:00
.TH SLAPTEST 8C "RELEASEDATE" "OpenLDAP LDVERSION"
2020-01-10 00:50:21 +08:00
.\" Copyright 2004-2020 The OpenLDAP Foundation All Rights Reserved.
2004-03-18 08:07:24 +08:00
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
.\" $OpenLDAP$
2004-03-18 08:07:24 +08:00
.SH NAME
slaptest \- Check the suitability of the OpenLDAP slapd configuration
2004-03-18 08:07:24 +08:00
.SH SYNOPSIS
.B SBINDIR/slaptest
2009-06-03 08:43:44 +08:00
[\c
.BI \-d \ debug-level\fR]
[\c
.BI \-f \ slapd.conf\fR]
[\c
.BI \-F \ confdir\fR]
[\c
2009-09-29 15:39:50 +08:00
.BI \-n dbnum\fR]
[\c
2009-06-03 08:43:44 +08:00
.BI \-o \ option\fR[ = value\fR]]
[\c
.BR \-Q ]
[\c
.BR \-u ]
[\c
.BR \-v ]
2004-03-18 08:07:24 +08:00
.LP
.SH DESCRIPTION
.LP
.B Slaptest
is used to check the conformance of the
.BR slapd (8)
configuration.
2004-03-18 08:07:24 +08:00
It opens the
.BR slapd.conf (5)
configuration file or the
2009-06-03 08:43:44 +08:00
.BR slapd\-config (5)
backend, and parses it according to the general and the backend-specific
rules, checking its sanity.
2004-03-18 08:07:24 +08:00
.LP
.SH OPTIONS
.TP
2009-06-03 08:43:44 +08:00
.BI \-d \ debug-level
2004-03-18 08:07:24 +08:00
enable debugging messages as defined by the specified
2009-06-03 08:43:44 +08:00
.IR debug-level ;
2006-09-09 02:26:57 +08:00
see
.BR slapd (8)
for details.
2004-03-18 08:07:24 +08:00
.TP
2009-06-03 08:43:44 +08:00
.BI \-f \ slapd.conf
2004-03-18 08:07:24 +08:00
specify an alternative
.BR slapd.conf (5)
file.
2005-04-04 20:25:12 +08:00
.TP
2009-06-03 08:43:44 +08:00
.BI \-F \ confdir
2005-04-04 20:25:12 +08:00
specify a config directory.
If both
2009-06-03 08:43:44 +08:00
.B \-f
and
2009-06-03 08:43:44 +08:00
.B \-F
are specified, the config file will be read and converted to
config directory format and written to the specified directory.
If neither option is specified, slaptest will attempt to read the
default config directory before trying to use the default
config file. If a valid config directory exists then the
2009-06-03 08:43:44 +08:00
default config file is ignored. If dry-run mode is also specified,
no conversion will occur.
2005-04-04 20:25:12 +08:00
.TP
2009-09-29 15:39:50 +08:00
.BI \-n \ dbnum
2009-09-29 15:42:12 +08:00
Just open and test the \fIdbnum\fR-th database listed in the
2009-09-29 15:39:50 +08:00
configuration file.
To only test the config database
.BR slapd\-config (5),
use
.B \-n 0
as it is always the first database.
.TP
2009-06-03 08:43:44 +08:00
.BI \-o \ option\fR[ = value\fR]
2006-05-25 01:57:13 +08:00
Specify an
2009-06-03 08:43:44 +08:00
.I option
2006-05-25 01:57:13 +08:00
with a(n optional)
2009-06-03 08:43:44 +08:00
.IR value .
2006-05-25 01:57:13 +08:00
Possible generic options/values are:
.LP
.nf
syslog=<subsystems> (see `\-s' in slapd(8))
2009-06-03 08:43:44 +08:00
syslog\-level=<level> (see `\-S' in slapd(8))
syslog\-user=<user> (see `\-l' in slapd(8))
2006-05-25 01:57:13 +08:00
.fi
.TP
2007-08-14 21:53:37 +08:00
.BI \-Q
Be extremely quiet: only the exit code indicates success (0) or not
(any other value).
.TP
2009-06-03 08:43:44 +08:00
.B \-u
enable dry-run mode (i.e. don't fail if databases cannot be opened,
2005-04-04 20:25:12 +08:00
but config is fine).
.TP
2009-06-03 08:43:44 +08:00
.B \-v
2005-04-04 20:25:12 +08:00
enable verbose mode.
2004-03-18 08:07:24 +08:00
.SH EXAMPLES
To check a
.BR slapd.conf (5)
give the command:
.LP
.nf
.ft tt
2009-06-03 08:43:44 +08:00
SBINDIR/slaptest \-f /ETCDIR/slapd.conf \-v
2004-03-18 08:07:24 +08:00
.ft
.fi
.SH "SEE ALSO"
.BR ldap (3),
2009-06-03 08:43:44 +08:00
.BR slapd (8),
2004-03-18 08:07:24 +08:00
.BR slapdn (8)
.LP
"OpenLDAP Administrator's Guide" (http://www.OpenLDAP.org/doc/admin/)
.SH ACKNOWLEDGEMENTS
2006-06-14 12:24:43 +08:00
.so ../Project