.TH SLAPTEST 8C "RELEASEDATE" "OpenLDAP LDVERSION"
-.\" Copyright 2004-2009 The OpenLDAP Foundation All Rights Reserved.
+.\" Copyright 2004-2013 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
[\c
.BI \-F \ confdir\fR]
[\c
+.BI \-n dbnum\fR]
+[\c
.BI \-o \ option\fR[ = value\fR]]
[\c
.BR \-Q ]
.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
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