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