X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;ds=sidebyside;f=doc%2Fman%2Fman8%2Fslaptest.8;h=85e7b63b82f9813667c3a3223d512b599b846787;hb=5dad37ff1eb89b7d9ee3f13a88c9992bbcfca049;hp=2e0e78fe0bc25f44968e1efd3bbfa5de7c11bb1f;hpb=cff53d48674350d8af590b3f91a249d258629734;p=openldap diff --git a/doc/man/man8/slaptest.8 b/doc/man/man8/slaptest.8 index 2e0e78fe0b..85e7b63b82 100644 --- a/doc/man/man8/slaptest.8 +++ b/doc/man/man8/slaptest.8 @@ -1,69 +1,98 @@ .TH SLAPTEST 8C "RELEASEDATE" "OpenLDAP LDVERSION" -.\" Copyright 2004-2006 The OpenLDAP Foundation All Rights Reserved. +.\" Copyright 2004-2012 The OpenLDAP Foundation All Rights Reserved. .\" Copying restrictions apply. See COPYRIGHT/LICENSE. +.\" $OpenLDAP$ .SH NAME -slaptest \- Check the suitability of the slapd.conf file. +slaptest \- Check the suitability of the OpenLDAP slapd configuration .SH SYNOPSIS .B SBINDIR/slaptest -.B [\-d level] -.B [\-f slapd.conf] -.B [\-F confdir] -.B [\-o name[=value] -.B [\-u] -.B [\-v] +[\c +.BI \-d \ debug-level\fR] +[\c +.BI \-f \ slapd.conf\fR] +[\c +.BI \-F \ confdir\fR] +[\c +.BI \-n dbnum\fR] +[\c +.BI \-o \ option\fR[ = value\fR]] +[\c +.BR \-Q ] +[\c +.BR \-u ] +[\c +.BR \-v ] .LP .SH DESCRIPTION .LP .B Slaptest is used to check the conformance of the -.BR slapd.conf (5) -configuration file. +.BR slapd (8) +configuration. It opens the .BR slapd.conf (5) -configuration file, and parses it according to the general -and the backend-specific rules, checking its sanity. +configuration file or the +.BR slapd\-config (5) +backend, and parses it according to the general and the backend-specific +rules, checking its sanity. .LP .SH OPTIONS .TP -.BI \-d " level" +.BI \-d \ debug-level enable debugging messages as defined by the specified -.IR level . +.IR debug-level ; +see +.BR slapd (8) +for details. .TP -.BI \-f " slapd.conf" +.BI \-f \ slapd.conf specify an alternative .BR slapd.conf (5) file. .TP -.BI \-F " confdir" +.BI \-F \ confdir specify a config directory. If both -.B -f +.B \-f and -.B -F +.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, +default config file is ignored. If dry-run mode is also specified, no conversion will occur. .TP -.BI \-o " option[=value]" +.BI \-n \ dbnum +Just open and test the \fIdbnum\fR-th database listed in the +configuration file. +To only test the config database +.BR slapd\-config (5), +use +.B \-n 0 +as it is always the first database. +.TP +.BI \-o \ option\fR[ = value\fR] Specify an -.BR option +.I option with a(n optional) -.BR value . +.IR value . Possible generic options/values are: .LP .nf syslog= (see `\-s' in slapd(8)) - syslog-level= (see `\-S' in slapd(8)) - syslog-user= (see `\-l' in slapd(8)) + syslog\-level= (see `\-S' in slapd(8)) + syslog\-user= (see `\-l' in slapd(8)) .fi .TP +.BI \-Q +Be extremely quiet: only the exit code indicates success (0) or not +(any other value). +.TP .B \-u -enable dryrun mode (i.e. don't fail if databases cannot be opened, +enable dry-run mode (i.e. don't fail if databases cannot be opened, but config is fine). .TP .B \-v @@ -75,17 +104,14 @@ give the command: .LP .nf .ft tt - SBINDIR/slaptest -f /ETCDIR/slapd.conf -v + SBINDIR/slaptest \-f /ETCDIR/slapd.conf \-v .ft .fi .SH "SEE ALSO" .BR ldap (3), -.BR slapd (8) +.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. +.so ../Project