1 .TH LDAPDELETE 1 "RELEASEDATE" "OpenLDAP LDVERSION"
3 .\" Copyright 1998-2002 The OpenLDAP Foundation All Rights Reserved.
4 .\" Copying restrictions apply. See COPYRIGHT/LICENSE.
6 ldapdelete \- LDAP delete entry tool
24 .BI \-d \ debuglevel\fR]
36 .BI \-h \ ldaphost\fR]
38 .BI \-P \ 2\fR\||\|\fI3\fR]
40 .BI \-p \ ldapport\fR]
42 .BR \-O \ security-properties ]
61 is a shell-accessible interface to the
66 opens a connection to an LDAP server, binds, and deletes one or more
67 entries. If one or more \fIDN\fP arguments are provided, entries with
68 those Distinguished Names are deleted. Each \fIDN\fP should be provided
69 using the LDAPv3 string representation as defined in RFC 2253.
70 If no \fIdn\fP arguments
71 are provided, a list of DNs is read from standard input (or from
72 \fIfile\fP if the -f flag is used).
76 Show what would be done, but don't actually delete entries. Useful for
77 debugging in conjunction with -v.
80 Use verbose mode, with many diagnostics written to standard output.
83 Use Kerberos IV authentication instead of simple authentication. It is
84 assumed that you already have a valid ticket granting ticket. This option
87 is compiled with Kerberos support.
90 Same as \-k, but only does step 1 of the Kerberos IV bind. This is useful
91 when connecting to a slapd and there is no x500dsa.hostname principal
92 registered with your Kerberos Domain Controller(s).
95 Automatically chase referrals.
98 Continuous operation mode. Errors are reported, but
100 will continue with deletions. The default is to exit after
104 Enable manage DSA IT control.
106 makes control critical.
109 Set the LDAP debugging level to \fIdebuglevel\fP.
111 must be compiled with LDAP_DEBUG defined for this option to have any effect.
114 Read a series of DNs from \fIfile\fP, one per line, performing an
115 LDAP delete for each.
118 Use simple authentication instead of SASL.
121 Use the Distinguished Name \fIbinddn\fP to bind to the LDAP directory.
124 Prompt for simple authentication.
125 This is used instead of specifying the password on the command line.
128 Use \fIpasswd\fP as the password for simple authentication.
131 Specify URI(s) referring to the ldap server(s).
134 Specify an alternate host on which the ldap server is running.
135 Deprecated in favor of -H.
138 Specify an alternate TCP port where the ldap server is listening.
139 Deprecated in favor of -H.
141 .BI \-P \ 2\fR\||\|\fI3
142 Specify the LDAP protocol version to use.
145 Do a recursive delete. If the DN specified isn't a leaf, its
146 children, and all their children are deleted down the tree. No
147 verification is done, so if you add this switch, ldapdelete will
148 happily delete large portions of your tree. Use with care.
150 .BI \-O \ security-properties
151 Specify SASL security properties.
154 Enable SASL Interactive mode. Always prompt. Default is to prompt
158 Enable SASL Quiet mode. Never prompt.
161 Specify the authentication ID for SASL bind. The form of the identity depends on the
162 actual SASL mechanism used.
165 Specify the requested authorization ID for SASL bind.
167 must be one of the following formats:
169 .I <distinguished name>
175 Specify the SASL mechanism to be used for authentication. If it's not
176 specified, the program will choose the best mechanism the server knows.
179 Issue StartTLS (Transport Layer Security) extended operation. If you use
181 , the command will require the operation to be successful.
183 The following command:
186 ldapdelete "cn=Delete Me,dc=example,dc=com"
189 will attempt to delete the entry named "cn=Delete Me,dc=example,dc=com".
190 Of course it would probably be necessary to supply authentication
193 Exit status is 0 if no errors occur. Errors result in a non-zero exit
194 status and a diagnostic message being written to standard error.
204 The OpenLDAP Project <http://www.openldap.org/>
207 is developed and maintained by The OpenLDAP Project (http://www.openldap.org/).
209 is derived from University of Michigan LDAP 3.3 Release.