LDAPDELETE(1) | User Commands | LDAPDELETE(1) |
ldapdelete - ldap delete entry tool
ldapdelete [-n] [-v] [-c] [-d debuglevel] [-f file]
[-D bindDN] [-w passwd | -j file] [-J [:criticality]]
[-?] [-H] [-h ldaphost] [-V version] [-i locale]
[-k path] [-P path] [-N certificate] [-y proxyid]
[-p ldapport] [-O hoplimit] [-o attributename=value]
[-W password] [dn]...
The ldapdelete utility opens a connection to an LDAP server, then binds and deletes one or more entries. If one or more dn arguments are provided, entries with those distinguished names are deleted. If no dn arguments are provided, a list of DNs is read from file, if the -f option is specified, or from standard input.
The following options are supported:
-a
-c
-d debuglevel
1
2
4
32
128
To request more than one category of debugging information, add the masks. For example, to request trace and filter information, specify a debuglevel of 33.
-D bindDN
-E
-f file
-?
-H
-h ldaphost
-i locale
Using this argument, you can input the bind DN and the target DNs in the specified character set. The ldapdelete tool converts the input from these arguments before it processes the search request. For example, -i no indicates that the bind DN and target DNs are provided in Norwegian.
This option affects only the command-line input. That is, if you specify a file containing DNs (with the -f option), ldapdelete will not convert the data in the file.
-j filename
-J [:criticality[:value|::b64value|b64value|:fileurl]]
-k path
-M
-n
-N certificate
-o attributename=value
The different attribute names and their values are as follows:
secProp="number"
realm="value"
authzid="value"
authid="value"
mech="value"
-O hopLimit
-p ldapport
-P path
-P /home/uid/.netscape/cert7.db
When using the command on the same host as the directory server, you can use the server's own certificate database. For example:
-P installDir/lapd-serverID/alias/cert7.db
Use the -P option alone to specify server authentication only.
-v
-V version
-W password
-w passwd
-Y proxyid
-Z
The following operand is supported:
dn
Example 1 Deleting an Entry
To delete the entry named with commonName Delete Me directly below the XYZ Corporation organizational entry, use the following command:
example% ldapdelete -D "cn=Administrator, o=XYZ, c=US" \
"cn=Delete Me, o=XYZ, c=US"
Example 2 Deleting an Entry Using SASL Authentication
To delete the entry named with commonName "Delete Me" directly below the XYZ Corporation organizational entry, use the following command:
example% ldapdelete -o mech=DIGEST-MD5 -o secProp=noanonymous \ -o realm=none -o authid="dn:uid=foo,o=XYZ, c=US" \ "cn=Delete Me, o=XYZ, c=US"
See attributes(7) for a description of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
Stability Level | Evolving |
The following exit values are returned:
0
Non-zero
ldapadd(1), ldapmodify(1), ldapmodrdn(1), ldapsearch(1), ldap_get_option(3LDAP), ldap_set_option(3LDAP), attributes(7)
The -M authentication option is obsolete.
January 15, 2004 | OmniOS |