1 .TH LDAPDELETE 1 "17 August 1999" "OpenLDAP LDVERSION"
3 .\" Copyright 1998-1999 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 \-h \ ldaphost\fR]
34 .BI \-P \ 2\fR\||\|\fI3\fR]
36 .BI \-p \ ldapport\fR]
41 is a shell-accessible interface to the
46 opens a connection to an LDAP server, binds, and deletes one or more
47 entries. If one or more \fIdn\fP arguments are provided, entries with
48 those Distinguished Names are deleted. Each \fIdn\fP should be a
49 string-represented DN as defined in RFC 1779. If no \fIdn\fP arguments
50 are provided, a list of DNs is read from standard input (or from
51 \fIfile\fP if the -f flag is used).
55 Show what would be done, but don't actually delete entries. Useful for
56 debugging in conjunction with -v.
59 Use verbose mode, with many diagnostics written to standard output.
62 Use Kerberos authentication instead of simple authentication. It is
63 assumed that you already have a valid ticket granting ticket. This option
66 is compiled with KERBEROS defined.
69 Same as \-k, but only does step 1 of the kerberos bind. This is useful
70 when connecting to a slapd and there is no x500dsa.hostname principal
71 registered with your kerberos servers.
74 Continuous operation mode. Errors are reported, but
76 will continue with deletions. The default is to exit after
80 Enable manage DSA IT control.
82 makes control critical.
85 Set the LDAP debugging level to \fIdebuglevel\fP.
87 must be compiled with LDAP_DEBUG defined for this option to have any effect.
90 Read a series of lines from \fIfile\fP, performing one LDAP search for
91 each line. In this case, the \fIfilter\fP given on the command line
92 is treated as a pattern where the first occurrence of \fB%s\fP is
93 replaced with a line from \fIfile\fP.
96 Use \fIbinddn\fP to bind to the LDAP directory. \fIbinddn\fP should be
97 a string-represented DN as defined in RFC 1779.
100 Prompt for simple authentication.
101 This is used instead of specifying the password on the command line.
104 Use \fIpasswd\fP as the password for simple authentication.
107 Specify an alternate host on which the ldap server is running.
110 Specify an alternate TCP port where the ldap server is listening.
112 .BI \-P \ 2\fR\||\|\fI3
113 Specify the LDAP protocol version to use.
115 The following command:
118 ldapdelete "cn=Delete Me, dc=OpenLDAP, dc=org"
121 will attempt to delete the entry named with commonName "Delete Me"
122 directly below the "dc=OpenLDAP, dc=org" entry. Of
123 course it would probably be necessary to supply a \fIbinddn\fP and
124 \fIpasswd\fP for deletion to be allowed (see the -D and -w options).
126 Exit status is 0 if no errors occur. Errors result in a non-zero exit
127 status and a diagnostic message being written to standard error.
138 .IR "A String Representation of Distinguished Names",
141 ISODE Consortium, March 1995.
143 There is no interactive mode, but there probably should be.
146 is developed and maintained by The OpenLDAP Project (http://www.openldap.org/).
148 is derived from University of Michigan LDAP 3.3 Release.