U.S. +1 (312) 214 3570  |  E.U +34 (91) 320-5524

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 is the performance leader for virtual directory and identity management solutions.   Benchmarks show Symlabs Virtual Directory Server, LDAP Proxy and Federated Identity Suite are the fastest and most powerful products in the industry for managing and unifying identity data.   Global giants like Sony, IBM, Vodafone, Nokia and United Nations already depend on Symlabs to add flexibility, security, and reliability to their infrastructure.  Symlabs also offers annual support, training and professional services to our clients to help them develop, integrate, and maintain solutions.