HP CIFS Server Administrator's Guide Version A.03.01.02 (5900-1766, September 2011)

Syntax
ldapdelete [optional_options]
where
optional_options Specifies a series of command-line options.
ldapdelete Options
The section lists ldapdelete options most commonly used.
-D Specifies the distinguished name (DN) with which to authenticate to the server. If specified,
this value must be a DN recognized by the Directory Server, and it must also have the
authority to delete the entries.
-h Specifies the name of the host on which the Directory Server is running. If you do not specify
a host, ldapdelete uses the local host.
-P Specifies the TCP port number that the Directory Server uses. The default is 389.
-dn Specifies the DN of the entry to be deleted.
-w Specifies the password associated with the distinguished name that is specified in the -D
option.
Examples
For example, the following command deletes the entry for user John in the LDAP directory server,
ldaphostA:
$ /opt/ldapux/ldapdelete -D "cn=Directory Manager,dc=example,dc=hp,dc=com" -w dmpasswd \
-h ldaphostA "uid=John,ou=People,dc=hp,dc=com"
172 Tool Reference