1 .TH SLAPTEST 8C "RELEASEDATE" "OpenLDAP LDVERSION"
2 .\" Copyright 2004-2011 The OpenLDAP Foundation All Rights Reserved.
3 .\" Copying restrictions apply. See COPYRIGHT/LICENSE.
6 slaptest \- Check the suitability of the OpenLDAP slapd configuration
10 .BI \-d \ debug-level\fR]
12 .BI \-f \ slapd.conf\fR]
18 .BI \-o \ option\fR[ = value\fR]]
29 is used to check the conformance of the
34 configuration file or the
36 backend, and parses it according to the general and the backend-specific
37 rules, checking its sanity.
42 enable debugging messages as defined by the specified
49 specify an alternative
54 specify a config directory.
59 are specified, the config file will be read and converted to
60 config directory format and written to the specified directory.
61 If neither option is specified, slaptest will attempt to read the
62 default config directory before trying to use the default
63 config file. If a valid config directory exists then the
64 default config file is ignored. If dry-run mode is also specified,
65 no conversion will occur.
68 Just open and test the \fIdbnum\fR-th database listed in the
70 To only test the config database
71 .BR slapd\-config (5),
74 as it is always the first database.
76 .BI \-o \ option\fR[ = value\fR]
81 Possible generic options/values are:
84 syslog=<subsystems> (see `\-s' in slapd(8))
85 syslog\-level=<level> (see `\-S' in slapd(8))
86 syslog\-user=<user> (see `\-l' in slapd(8))
91 Be extremely quiet: only the exit code indicates success (0) or not
95 enable dry-run mode (i.e. don't fail if databases cannot be opened,
107 SBINDIR/slaptest \-f /ETCDIR/slapd.conf \-v
115 "OpenLDAP Administrator's Guide" (http://www.OpenLDAP.org/doc/admin/)