]> git.sur5r.net Git - openldap/blob - doc/man/man8/slaptest.8
Happy new year!
[openldap] / doc / man / man8 / slaptest.8
1 .TH SLAPTEST 8C "RELEASEDATE" "OpenLDAP LDVERSION"
2 .\" Copyright 2004-2006 The OpenLDAP Foundation All Rights Reserved.
3 .\" Copying restrictions apply.  See COPYRIGHT/LICENSE.
4 .SH NAME
5 slaptest \- Check the suitability of the slapd.conf file.
6 .SH SYNOPSIS
7 .B SBINDIR/slaptest
8 .B [\-d level]
9 .B [\-f slapd.conf]
10 .B [\-F confdir]
11 .B [\-u]
12 .B [\-v]
13 .LP
14 .SH DESCRIPTION
15 .LP
16 .B Slaptest
17 is used to check the conformance of the
18 .BR slapd.conf (5)
19 configuration file.
20 It opens the
21 .BR slapd.conf (5)
22 configuration file, and parses it according to the general 
23 and the backend-specific rules, checking its sanity.
24 .LP
25 .SH OPTIONS
26 .TP
27 .BI \-d " level"
28 enable debugging messages as defined by the specified
29 .IR level .
30 .TP
31 .BI \-f " slapd.conf"
32 specify an alternative
33 .BR slapd.conf (5)
34 file.
35 .TP
36 .BI \-F " confdir"
37 specify a config directory.
38 If both
39 .B -f
40 and
41 .B -F
42 are specified, the config file will be read and converted to
43 config directory format and written to the specified directory.
44 If neither option is specified, slaptest will attempt to read the
45 default config directory before trying to use the default
46 config file. If a valid config directory exists then the
47 default config file is ignored. If dryrun mode is also specified,
48 no conversion will occur.
49 .TP
50 .B \-u
51 enable dryrun mode (i.e. don't fail if databases cannot be opened,
52 but config is fine).
53 .TP
54 .B \-v
55 enable verbose mode.
56 .SH EXAMPLES
57 To check a 
58 .BR slapd.conf (5)
59 give the command:
60 .LP
61 .nf
62 .ft tt
63         SBINDIR/slaptest -f /ETCDIR/slapd.conf -v
64 .ft
65 .fi
66 .SH "SEE ALSO"
67 .BR ldap (3),
68 .BR slapd (8)
69 .BR slapdn (8)
70 .LP
71 "OpenLDAP Administrator's Guide" (http://www.OpenLDAP.org/doc/admin/)
72 .SH ACKNOWLEDGEMENTS
73 .B OpenLDAP
74 is developed and maintained by The OpenLDAP Project (http://www.openldap.org/).
75 .B OpenLDAP
76 is derived from University of Michigan LDAP 3.3 Release.