1SLAPTEST(8C) SLAPTEST(8C)
2
3
4
6 slaptest - Check the suitability of the OpenLDAP slapd configuration
7
9 /usr/sbin/slaptest [-d debug-level] [-f slapd.conf] [-F confdir] [-ndb‐
10 num] [-o option[=value]] [-Q] [-u] [-v]
11
13 Slaptest is used to check the conformance of the slapd(8) configura‐
14 tion. It opens the slapd.conf(5) configuration file or the slapd-con‐
15 fig(5) backend, and parses it according to the general and the backend-
16 specific rules, checking its sanity.
17
19 -d debug-level
20 enable debugging messages as defined by the specified debug-
21 level; see slapd(8) for details.
22
23 -f slapd.conf
24 specify an alternative slapd.conf(5) file.
25
26 -F confdir
27 specify a config directory. If both -f and -F are specified,
28 the config file will be read and converted to config directory
29 format and written to the specified directory. If neither
30 option is specified, slaptest will attempt to read the default
31 config directory before trying to use the default config file.
32 If a valid config directory exists then the default config file
33 is ignored. If dry-run mode is also specified, no conversion
34 will occur.
35
36 -n dbnum
37 Just open and test the dbnum-th database listed in the configu‐
38 ration file. To only test the config database slapd-config(5),
39 use -n 0 as it is always the first database.
40
41 -o option[=value]
42 Specify an option with a(n optional) value. Possible generic
43 options/values are:
44
45 syslog=<subsystems> (see `-s' in slapd(8))
46 syslog-level=<level> (see `-S' in slapd(8))
47 syslog-user=<user> (see `-l' in slapd(8))
48
49
50 -Q Be extremely quiet: only the exit code indicates success (0) or
51 not (any other value).
52
53 -u enable dry-run mode (i.e. don't fail if databases cannot be
54 opened, but config is fine).
55
56 -v enable verbose mode.
57
59 To check a slapd.conf(5) give the command:
60
61 /usr/sbin/slaptest -f //etc/openldap/slapd.conf -v
62
64 ldap(3), slapd(8), slapdn(8)
65
66 "OpenLDAP Administrator's Guide" (http://www.OpenLDAP.org/doc/admin/)
67
69 OpenLDAP Software is developed and maintained by The OpenLDAP Project
70 <http://www.openldap.org/>. OpenLDAP Software is derived from the Uni‐
71 versity of Michigan LDAP 3.3 Release.
72
73
74
75OpenLDAP 2.4.47 2018/12/19 SLAPTEST(8C)