openldap/doc/man/man8/slapdn.8

109 lines
2.3 KiB
Groff
Raw Normal View History

2004-03-18 08:07:24 +08:00
.TH SLAPDN 8C "RELEASEDATE" "OpenLDAP LDVERSION"
2009-01-22 08:40:04 +08:00
.\" Copyright 2004-2009 The OpenLDAP Foundation All Rights Reserved.
2004-03-18 08:07:24 +08:00
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
.\" $OpenLDAP$
2004-03-18 08:07:24 +08:00
.SH NAME
slapdn \- Check a list of string-represented LDAP DNs based on schema syntax
2004-03-18 08:07:24 +08:00
.SH SYNOPSIS
.B SBINDIR/slapdn
2009-06-03 08:43:44 +08:00
[\c
.BI \-d \ debug-level\fR]
[\c
.BI \-f \ slapd.conf\fR]
[\c
.BI \-F \ confdir\fR]
[\c
.BR \-N | \-P ]
[\c
.BI \-o \ option\fR[ = value\fR]]
[\c
.BR \-v ]
.IR DN \ [...]
2004-03-18 08:07:24 +08:00
.LP
.SH DESCRIPTION
.LP
.B Slapdn
is used to check the conformance of a DN based on the schema
defined in
.BR slapd (8)
and that loaded via
.BR slapd.conf (5).
It opens the
.BR slapd.conf (5)
2009-06-03 08:43:44 +08:00
configuration file or the slapd\-config (5) backend, reads in the schema definitions, and then
2004-03-18 08:07:24 +08:00
parses the
2009-06-03 08:43:44 +08:00
.I DN
2004-03-18 08:07:24 +08:00
list given on the command-line.
.LP
.SH OPTIONS
.TP
2009-06-03 08:43:44 +08:00
.BI \-d \ debug-level
2004-03-18 08:07:24 +08:00
enable debugging messages as defined by the specified
2009-06-03 08:43:44 +08:00
.IR debug-level ;
2006-09-09 02:26:57 +08:00
see
.BR slapd (8)
for details.
2004-03-18 08:07:24 +08:00
.TP
2009-06-03 08:43:44 +08:00
.BI \-f \ slapd.conf
2004-03-18 08:07:24 +08:00
specify an alternative
.BR slapd.conf (5)
file.
2005-04-02 02:59:28 +08:00
.TP
2009-06-03 08:43:44 +08:00
.BI \-F \ confdir
specify a config directory.
If both
2009-06-03 08:43:44 +08:00
.B \-f
and
2009-06-03 08:43:44 +08:00
.B \-F
are specified, the config file will be read and converted to
config directory format and written to the specified directory.
If neither option is specified, an attempt to read the
2005-11-11 19:17:46 +08:00
default config directory will be made before trying to use the default
config file. If a valid config directory exists then the
default config file is ignored.
.TP
2005-04-02 02:59:28 +08:00
.BI \-N
2009-06-03 08:43:44 +08:00
only output a normalized form of the \fIDN\fP, suitable to be used
2005-04-02 02:59:28 +08:00
in a normalization tool; incompatible with
.BR \-P .
.TP
2009-06-03 08:43:44 +08:00
.BI \-o \ option\fR[ = value\fR]
2006-05-25 01:57:13 +08:00
Specify an
2009-06-03 08:43:44 +08:00
.I option
2006-05-25 01:57:13 +08:00
with a(n optional)
2009-06-03 08:43:44 +08:00
.IR value .
2006-05-25 01:57:13 +08:00
Possible generic options/values are:
.LP
.nf
syslog=<subsystems> (see `\-s' in slapd(8))
2009-06-03 08:43:44 +08:00
syslog\-level=<level> (see `\-S' in slapd(8))
syslog\-user=<user> (see `\-l' in slapd(8))
2006-05-25 01:57:13 +08:00
.fi
.TP
2005-04-02 02:59:28 +08:00
.BI \-P
2009-06-03 08:43:44 +08:00
only output a prettified form of the \fIDN\fP, suitable to be used
2005-04-02 02:59:28 +08:00
in a check and beautification tool; incompatible with
.BR \-N .
2006-05-25 01:57:13 +08:00
.TP
.B \-v
enable verbose mode.
2004-03-18 08:07:24 +08:00
.SH EXAMPLES
To check a
.B DN
give the command:
.LP
.nf
.ft tt
2009-06-03 08:43:44 +08:00
SBINDIR/slapdn \-f /ETCDIR/slapd.conf \-v DN
2004-03-18 08:07:24 +08:00
.ft
.fi
.SH "SEE ALSO"
.BR ldap (3),
2009-06-03 08:43:44 +08:00
.BR slapd (8),
2004-03-18 08:07:24 +08:00
.BR slaptest (8)
.LP
"OpenLDAP Administrator's Guide" (http://www.OpenLDAP.org/doc/admin/)
.SH ACKNOWLEDGEMENTS
2006-06-14 12:24:43 +08:00
.so ../Project