2004-03-18 08:07:24 +08:00
|
|
|
.TH SLAPTEST 8C "RELEASEDATE" "OpenLDAP LDVERSION"
|
2007-01-03 04:00:42 +08:00
|
|
|
.\" Copyright 2004-2007 The OpenLDAP Foundation All Rights Reserved.
|
2004-03-18 08:07:24 +08:00
|
|
|
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
|
|
|
|
.SH NAME
|
2007-07-25 03:11:39 +08:00
|
|
|
slaptest \- Check the suitability of the OpenLDAP slapd.conf file
|
2004-03-18 08:07:24 +08:00
|
|
|
.SH SYNOPSIS
|
|
|
|
.B SBINDIR/slaptest
|
|
|
|
.B [\-d level]
|
|
|
|
.B [\-f slapd.conf]
|
2005-04-04 20:25:12 +08:00
|
|
|
.B [\-F confdir]
|
2006-05-25 01:57:13 +08:00
|
|
|
.B [\-o name[=value]
|
2007-08-14 21:53:37 +08:00
|
|
|
.B [\-Q]
|
2005-04-04 20:25:12 +08:00
|
|
|
.B [\-u]
|
|
|
|
.B [\-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.conf (5)
|
2005-07-04 14:57:10 +08:00
|
|
|
configuration file.
|
2004-03-18 08:07:24 +08:00
|
|
|
It opens the
|
|
|
|
.BR slapd.conf (5)
|
|
|
|
configuration file, and parses it according to the general
|
|
|
|
and the backend-specific rules, checking its sanity.
|
|
|
|
.LP
|
|
|
|
.SH OPTIONS
|
|
|
|
.TP
|
|
|
|
.BI \-d " level"
|
|
|
|
enable debugging messages as defined by the specified
|
2006-09-09 02:26:57 +08:00
|
|
|
.IR level ;
|
|
|
|
see
|
|
|
|
.BR slapd (8)
|
|
|
|
for details.
|
2004-03-18 08:07:24 +08:00
|
|
|
.TP
|
|
|
|
.BI \-f " slapd.conf"
|
|
|
|
specify an alternative
|
|
|
|
.BR slapd.conf (5)
|
|
|
|
file.
|
2005-04-04 20:25:12 +08:00
|
|
|
.TP
|
|
|
|
.BI \-F " confdir"
|
|
|
|
specify a config directory.
|
2005-06-10 03:44:02 +08:00
|
|
|
If both
|
|
|
|
.B -f
|
|
|
|
and
|
|
|
|
.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
|
|
|
|
default config file is ignored. If dryrun mode is also specified,
|
2005-09-23 08:01:54 +08:00
|
|
|
no conversion will occur.
|
2005-04-04 20:25:12 +08:00
|
|
|
.TP
|
2006-05-25 01:57:13 +08:00
|
|
|
.BI \-o " option[=value]"
|
|
|
|
Specify an
|
|
|
|
.BR option
|
|
|
|
with a(n optional)
|
|
|
|
.BR value .
|
|
|
|
Possible generic options/values are:
|
|
|
|
.LP
|
|
|
|
.nf
|
|
|
|
syslog=<subsystems> (see `\-s' in slapd(8))
|
|
|
|
syslog-level=<level> (see `\-S' in slapd(8))
|
|
|
|
syslog-user=<user> (see `\-l' in slapd(8))
|
|
|
|
|
|
|
|
.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
|
|
|
|
.BI \-u
|
2005-04-04 20:25:12 +08:00
|
|
|
enable dryrun mode (i.e. don't fail if databases cannot be opened,
|
|
|
|
but config is fine).
|
|
|
|
.TP
|
2007-08-14 21:53:37 +08:00
|
|
|
.BI \-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
|
|
|
|
SBINDIR/slaptest -f /ETCDIR/slapd.conf -v
|
|
|
|
.ft
|
|
|
|
.fi
|
|
|
|
.SH "SEE ALSO"
|
|
|
|
.BR ldap (3),
|
|
|
|
.BR slapd (8)
|
|
|
|
.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
|