You can only delete entries at the end of a branch. You cannot delete entries that
are branch points in the directory tree.
For example, of the following three entries:
ou=People,dc=example,dc=com
cn=Paula Simon,ou=People,dc=example,dc=com
cn=Jerry O'Connor,ou=People,dc=example,dc=com
you can delete only the last two entries. The entry that identifies the People
subtree can be deleted only if there aren't any entries below it. If you want to
delete
ou=People,dc=example,dc=com
Jerry O'Connor's entries, and all other entries in that subtree.
Here is a typical example of how to use the
•
You want to delete the entries identified by the distinguished names:
cn=Robert Jenkins,ou=People,dc=example,dc=com and cn=Lisa
Jangles, ou=People,dc=example,dc=com
•
You have created a database administrator that has the authority to modify
the entries, and whose distinguished name is
dc=example,dc=com
•
The database administrator's password is
•
The server is located on
•
The server uses port number
To delete the entries for users Robert Jenkins and Lisa Jangles, enter the following
command:
ldapdelete -D "cn=Directory Manager,dc=example,dc=com" -w
King-Pin -h cyclops -p 845 "cn=Robert
Jenkins,ou=People,dc=example,dc=com" "cn=Lisa
Jangles,ou=People,dc=example,dc=com"
The following table describes the
Table 2-4
Description of ldapdelete Parameters Used for Deleting Entries
Parameter Name
-D
-w
, you must first delete Paula Simon and
ldapdelete
.
cyclops
.
845
ldapdelete
Description
Specifies the distinguished name with which to
authenticate to the server. The value must be a DN
recognized by the Directory Server, and it must also have
the authority to modify the entries.
Specifies the password associated with the distinguished
name specified in the -D parameter.
Managing Entries From the Command Line
utility. Suppose that:
cn=Directory Manager,
.
King-Pin
parameters used in the example:
Chapter 2
Creating Directory Entries
61
Need help?
Do you have a question about the NETSCAPE DIRECTORY SERVER 6.2 - ADMINISTRATOR and is the answer not in the manual?
Questions and answers