]> git.sur5r.net Git - openldap/blob - doc/man/man8/slapdn.8
Fix missing CVS header
[openldap] / doc / man / man8 / slapdn.8
1 .TH SLAPDN 8C "RELEASEDATE" "OpenLDAP LDVERSION"
2 .\" Copyright 2004-2009 The OpenLDAP Foundation All Rights Reserved.
3 .\" Copying restrictions apply.  See COPYRIGHT/LICENSE.
4 .\" $OpenLDAP$
5 .SH NAME
6 slapdn \- Check a list of string-represented LDAP DNs based on schema syntax
7 .SH SYNOPSIS
8 .B SBINDIR/slapdn
9 .B [\-d level]
10 .B [\-f slapd.conf]
11 .B [\-F confdir]
12 .B [\-N | \-P]
13 .B [\-o name[=value]]
14 .B [\-v]
15 .B DN [...]
16 .LP
17 .SH DESCRIPTION
18 .LP
19 .B Slapdn
20 is used to check the conformance of a DN based on the schema
21 defined in
22 .BR slapd (8)
23 and that loaded via 
24 .BR slapd.conf (5).
25 It opens the
26 .BR slapd.conf (5)
27 configuration file or the slapd-config (5) backend, reads in the schema definitions, and then
28 parses the 
29 .B DN
30 list given on the command-line.
31 .LP
32 .SH OPTIONS
33 .TP
34 .BI \-d " level"
35 enable debugging messages as defined by the specified
36 .IR level ;
37 see
38 .BR slapd (8)
39 for details.
40 .TP
41 .BI \-f " slapd.conf"
42 specify an alternative
43 .BR slapd.conf (5)
44 file.
45 .TP
46 .BI \-F " confdir"
47 specify a config directory.
48 If both
49 .B -f
50 and
51 .B -F
52 are specified, the config file will be read and converted to
53 config directory format and written to the specified directory.
54 If neither option is specified, an attempt to read the
55 default config directory will be made before trying to use the default
56 config file. If a valid config directory exists then the
57 default config file is ignored.
58 .TP
59 .BI \-N
60 only output a normalized form of the DN, suitable to be used
61 in a normalization tool; incompatible with
62 .BR \-P .
63 .TP
64 .BI \-o " option[=value]"
65 Specify an
66 .BR option
67 with a(n optional)
68 .BR value .
69 Possible generic options/values are:
70 .LP
71 .nf
72               syslog=<subsystems>  (see `\-s' in slapd(8))
73               syslog-level=<level> (see `\-S' in slapd(8))
74               syslog-user=<user>   (see `\-l' in slapd(8))
75
76 .fi
77 .TP
78 .BI \-P
79 only output a prettified form of the DN, suitable to be used
80 in a check and beautification tool; incompatible with
81 .BR \-N .
82 .TP
83 .B \-v
84 enable verbose mode.
85 .SH EXAMPLES
86 To check a
87 .B DN
88 give the command:
89 .LP
90 .nf
91 .ft tt
92         SBINDIR/slapdn -f /ETCDIR/slapd.conf -v DN
93 .ft
94 .fi
95 .SH "SEE ALSO"
96 .BR ldap (3),
97 .BR slapd (8)
98 .BR slaptest (8)
99 .LP
100 "OpenLDAP Administrator's Guide" (http://www.OpenLDAP.org/doc/admin/)
101 .SH ACKNOWLEDGEMENTS
102 .so ../Project