]> git.sur5r.net Git - openldap/blobdiff - doc/man/man8/slaptest.8
Merge remote branch 'origin/mdb.master' into OPENLDAP_REL_ENG_2_4
[openldap] / doc / man / man8 / slaptest.8
index cb6f93d9dae8a4685e2e17bc5ea6f50f8d616746..85e7b63b82f9813667c3a3223d512b599b846787 100644 (file)
@@ -1,9 +1,9 @@
 .TH SLAPTEST 8C "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" Copyright 2004-2009 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 OpenLDAP slapd.conf file
+slaptest \- Check the suitability of the OpenLDAP slapd configuration
 .SH SYNOPSIS
 .B SBINDIR/slaptest
 [\c
@@ -13,6 +13,8 @@ slaptest \- Check the suitability of the OpenLDAP slapd.conf file
 [\c
 .BI \-F \ confdir\fR]
 [\c
+.BI \-n dbnum\fR]
+[\c
 .BI \-o \ option\fR[ = value\fR]]
 [\c
 .BR \-Q ]
@@ -25,8 +27,8 @@ slaptest \- Check the suitability of the OpenLDAP slapd.conf file
 .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 or the 
@@ -62,6 +64,15 @@ config file. If a valid config directory exists then the
 default config file is ignored. If dry-run mode is also specified,
 no conversion will occur.
 .TP
+.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
 .I option
@@ -84,7 +95,7 @@ Be extremely quiet: only the exit code indicates success (0) or not
 enable dry-run mode (i.e. don't fail if databases cannot be opened,
 but config is fine).
 .TP
-.BI \-v
+.B \-v
 enable verbose mode.
 .SH EXAMPLES
 To check a