Managing Entries From the Command Line
Table 2-3
Parameter Name
-w
-h
-p
-f
For full information on
Server Configuration, Command, and File Reference.
Deleting Entries Using ldapdelete
Use the
utility opens a connection to the specified server using the distinguished name and
password you provide, and deletes the entry or entries.
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
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
Jangles, ou=People,dc=example,dc=com
56
Netscape Directory Server Administrator's Guide • May 2002
Description of ldapmodify Parameters Used for Modifying Entries (Continued)
Description
Specifies the password associated with the distinguished
name specified in the -D parameter.
Specifies the name of the host on which the server is running.
Specifies the port number that the server uses.
Optional parameter that specifies the file containing the LDIF
update statements used to define the modifications. If you do
not supply this parameter, the update statements are read
from stdin. For information on supplying LDIF update
statements from the command line, refer to "Providing Input
From the Command Line," on page 51.
ldapmodify
command-line utility to delete entries from the directory. This
ldapdelete
parameters, refer to the Netscape Directory
, you must first delete Paula Simon and Jerry
ldapdelete
.
utility. Suppose that:
and
cn=Lisa
Need help?
Do you have a question about the NETSCAPE DIRECTORY SERVER 6.02 - ADMINISTRATOR and is the answer not in the manual?
Questions and answers