U.S. +1 (312) 214 3570  |  E.U +34 (91) 656-9266

LDAP Shell Commands :: ldapdelete

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.

About Symlabs
 
Symlabs focuses on Identity Management. We offer "standards based" software components like the Symlabs Virtual Directory Server, Symlabs LDAP Proxy and the Symlabs Federated Identity Suite. We also offer software support, training and professional services.