1 .TH LDAPDELETE 1 "RELEASEDATE" "OpenLDAP LDVERSION"
3 .\" Copyright 1998-2003 The OpenLDAP Foundation All Rights Reserved.
4 .\" Copying restrictions apply. See COPYRIGHT/LICENSE.
6 ldapdelete \- LDAP delete entry tool
22 .BI \-d \ debuglevel\fR]
32 .BI \-y \ passwdfile\fR]
36 .BI \-h \ ldaphost\fR]
38 .BI \-P \ 2\fR\||\|\fI3\fR]
40 .BI \-p \ ldapport\fR]
42 .BR \-O \ security-properties ]
63 is a shell-accessible interface to the
68 opens a connection to an LDAP server, binds, and deletes one or more
69 entries. If one or more \fIDN\fP arguments are provided, entries with
70 those Distinguished Names are deleted. Each \fIDN\fP should be provided
71 using the LDAPv3 string representation as defined in RFC 2253.
72 If no \fIdn\fP arguments
73 are provided, a list of DNs is read from standard input (or from
74 \fIfile\fP if the -f flag is used).
78 Show what would be done, but don't actually delete entries. Useful for
79 debugging in conjunction with -v.
82 Use verbose mode, with many diagnostics written to standard output.
85 Use Kerberos IV authentication instead of simple authentication. It is
86 assumed that you already have a valid ticket granting ticket. This option
89 is compiled with Kerberos support.
92 Same as \-k, but only does step 1 of the Kerberos IV bind. This is useful
93 when connecting to a slapd and there is no x500dsa.hostname principal
94 registered with your Kerberos Domain Controller(s).
97 Continuous operation mode. Errors are reported, but
99 will continue with deletions. The default is to exit after
103 Enable manage DSA IT control.
105 makes control critical.
108 Set the LDAP debugging level to \fIdebuglevel\fP.
110 must be compiled with LDAP_DEBUG defined for this option to have any effect.
113 Read a series of DNs from \fIfile\fP, one per line, performing an
114 LDAP delete for each.
117 Use simple authentication instead of SASL.
120 Use the Distinguished Name \fIbinddn\fP to bind to the LDAP directory.
123 Prompt for simple authentication.
124 This is used instead of specifying the password on the command line.
127 Use \fIpasswd\fP as the password for simple authentication.
130 Use complete contents of \fIpasswdfile\fP as the password for
131 simple authentication.
134 Specify URI(s) referring to the ldap server(s).
137 Specify an alternate host on which the ldap server is running.
138 Deprecated in favor of -H.
141 Specify an alternate TCP port where the ldap server is listening.
142 Deprecated in favor of -H.
144 .BI \-P \ 2\fR\||\|\fI3
145 Specify the LDAP protocol version to use.
148 Do a recursive delete. If the DN specified isn't a leaf, its
149 children, and all their children are deleted down the tree. No
150 verification is done, so if you add this switch, ldapdelete will
151 happily delete large portions of your tree. Use with care.
153 .BI \-O \ security-properties
154 Specify SASL security properties.
157 Enable SASL Interactive mode. Always prompt. Default is to prompt
161 Enable SASL Quiet mode. Never prompt.
164 Specify the authentication ID for SASL bind. The form of the identity depends on the
165 actual SASL mechanism used.
168 Specify the realm of authentication ID for SASL bind. The form of the realm
169 depends on the actual SASL mechanism used.
172 Specify the requested authorization ID for SASL bind.
174 must be one of the following formats:
176 .I <distinguished name>
182 Specify the SASL mechanism to be used for authentication. If it's not
183 specified, the program will choose the best mechanism the server knows.
186 Issue StartTLS (Transport Layer Security) extended operation. If you use
188 , the command will require the operation to be successful.
190 The following command:
193 ldapdelete "cn=Delete Me,dc=example,dc=com"
196 will attempt to delete the entry named "cn=Delete Me,dc=example,dc=com".
197 Of course it would probably be necessary to supply authentication
200 Exit status is 0 if no errors occur. Errors result in a non-zero exit
201 status and a diagnostic message being written to standard error.
211 The OpenLDAP Project <http://www.openldap.org/>
214 is developed and maintained by The OpenLDAP Project (http://www.openldap.org/).
216 is derived from University of Michigan LDAP 3.3 Release.