ldapdelete :: LDAP Shell Commands

Description
 
Ldapdelete opens a connection to an LDAP server, binds and deletes one or more entries. The DNs of the entries to be deleted are passed as arguments or read from a file (with -f option). Without dn arguments or -f options, ldapdelete will read them from the standard input.
 
Syntax
 
ldapdelete
[-n] [-v] [-k] [-K] [-c] [-M[M]]
[-d debuglevel] [-f file] [-D binddn]
[-W] [-w passwd] [-y passwdfile]
[-H ldapuri] [-h ldaphost] [-P 2|3]
[-p ldapport] [-O security-properties]
[-U authcid] [-R realm] [-x] [-I] [-Q]
[-X authzid] [-Y mech] [-Z[Z]] [dn]
 
-c
Continuous operation mode. If an error is found when an entry is being deleted, it is reported, but ldapdelete will continue reading dns. The default is to exit after reporting an error.
-h ldaphost
Specifies an alternate host on which the LDAP server is running
-p ldapport Specifies the TCP port where LDAP server is listening
-D binddn Binddn is the distinguished name used to bind to the LDAP server
-w passwd Use passwd as the password for simple authentication
-f file Read the entries to delete from file.
dn Distinguished name of the entry to be deleted.

Example
 
The following command:
 
ldapdelete -c -h 10.63.3.200 -p 1389 -D "cn=James Bond,ou=people, dc=mycompany,dc=com" -w drymartini -id=47,ou=people, dc=mycompany,dc=com" "id=53, ou=people, dc=mycompany, dc=com"
 
should have been written by James Bond after the end of "Goldfinger" and "James Bond vs. Dr No" to delete the entries created in the ldapadd example.

Symlabs is now part of Quest Software. A leader in simplifying and reducing the cost of IT management, Quest’s innovative solutions make solving the toughest IT management problems easier, enabling more than 100,000 customers worldwide to save time and money across physical, virtual and cloud environments. The addition of Symlabs virtual directory and federation technology will enhance the overall architecture of the Quest® One Identity Solution and Quest migration products. Learn more at www.quest.com/symlabs.