mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-27 03:20:22 +08:00
77 lines
1.8 KiB
Groff
77 lines
1.8 KiB
Groff
.TH SLAPTEST 8C "RELEASEDATE" "OpenLDAP LDVERSION"
|
|
.\" Copyright 2004-2006 The OpenLDAP Foundation All Rights Reserved.
|
|
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
|
|
.SH NAME
|
|
slaptest \- Check the suitability of the slapd.conf file.
|
|
.SH SYNOPSIS
|
|
.B SBINDIR/slaptest
|
|
.B [\-d level]
|
|
.B [\-f slapd.conf]
|
|
.B [\-F confdir]
|
|
.B [\-u]
|
|
.B [\-v]
|
|
.LP
|
|
.SH DESCRIPTION
|
|
.LP
|
|
.B Slaptest
|
|
is used to check the conformance of the
|
|
.BR slapd.conf (5)
|
|
configuration file.
|
|
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
|
|
.IR level .
|
|
.TP
|
|
.BI \-f " slapd.conf"
|
|
specify an alternative
|
|
.BR slapd.conf (5)
|
|
file.
|
|
.TP
|
|
.BI \-F " confdir"
|
|
specify a config directory.
|
|
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,
|
|
no conversion will occur.
|
|
.TP
|
|
.B \-u
|
|
enable dryrun mode (i.e. don't fail if databases cannot be opened,
|
|
but config is fine).
|
|
.TP
|
|
.B \-v
|
|
enable verbose mode.
|
|
.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
|
|
.B OpenLDAP
|
|
is developed and maintained by The OpenLDAP Project (http://www.openldap.org/).
|
|
.B OpenLDAP
|
|
is derived from University of Michigan LDAP 3.3 Release.
|