]> git.sur5r.net Git - openldap/blob - doc/man/man8/slapdn.8
01513f2ee5de538c8e257f373503d98b0b27a02c
[openldap] / doc / man / man8 / slapdn.8
1 .TH SLAPDN 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 slapdn \- Check a list of string-represented DNs based on schema syntax.
6 .SH SYNOPSIS
7 .B SBINDIR/slapdn
8 .B [\-v]
9 .B [\-d level]
10 .B [\-f slapd.conf]
11 .B [\-F confdir]
12 .B [\-N | \-P]
13 .B DN [...]
14 .LP
15 .SH DESCRIPTION
16 .LP
17 .B Slapdn
18 is used to check the conformance of a DN based on the schema
19 defined in
20 .BR slapd (8)
21 and that loaded via 
22 .BR slapd.conf (5).
23 It opens the
24 .BR slapd.conf (5)
25 configuration file, reads in the schema definitions, and then
26 parses the 
27 .B DN
28 list given on the command-line.
29 .LP
30 .SH OPTIONS
31 .TP
32 .B \-v
33 enable verbose mode.
34 .TP
35 .BI \-d " level"
36 enable debugging messages as defined by the specified
37 .IR level .
38 .TP
39 .BI \-f " slapd.conf"
40 specify an alternative
41 .BR slapd.conf (5)
42 file.
43 .TP
44 .BI \-F " confdir"
45 specify a config directory.
46 If both
47 .B -f
48 and
49 .B -F
50 are specified, the config file will be read and converted to
51 config directory format and written to the specified directory.
52 If neither option is specified, an attempt to read the
53 default config directory will be made before trying to use the default
54 config file. If a valid config directory exists then the
55 default config file is ignored.
56 .TP
57 .BI \-N
58 only output a normalized form of the DN, suitable to be used
59 in a normalization tool; incompatible with
60 .BR \-P .
61 .TP
62 .BI \-P
63 only output a prettified form of the DN, suitable to be used
64 in a check and beautification tool; incompatible with
65 .BR \-N .
66 .SH EXAMPLES
67 To check a
68 .B DN
69 give the command:
70 .LP
71 .nf
72 .ft tt
73         SBINDIR/slapdn -f /ETCDIR/slapd.conf -v DN
74 .ft
75 .fi
76 .SH "SEE ALSO"
77 .BR ldap (3),
78 .BR slapd (8)
79 .BR slaptest (8)
80 .LP
81 "OpenLDAP Administrator's Guide" (http://www.OpenLDAP.org/doc/admin/)
82 .SH ACKNOWLEDGEMENTS
83 .B OpenLDAP
84 is developed and maintained by The OpenLDAP Project (http://www.openldap.org/).
85 .B OpenLDAP
86 is derived from University of Michigan LDAP 3.3 Release.