Red Hat Directory Server 8.0 Administrator's Guide

Parameter Name Description
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.
-w Specifies the password associated with the
distinguished name specified in the -D
parameter.
-h Specifies the name of the host on which the
server is running.
-p Specifies the port number that the server
uses.
-f 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 Section 2.1, “Providing
Input from the Command-Line”.
Table 2.2. ldapmodify Parameters Used for Adding Entries
For full information on ldapmodify parameters, see the Directory Server Configuration,
Command, and File Reference.
2.4.2. Modifying Entries Using ldapmodify
Typically, to edit entries using ldapmodify, specify the DN and password to bind to the
Directory Server, the port and host of the Directory Server, and the LDIF file to use, as when
adding entries with ldapmodify. For example:
ldapmodify -D "cn=Directory Manager" -w King-Pin -h cyclops -p 845 -f
modify_statements
This ldapmodify example has the following values:
The entries to modify are specified in the file modify_statements. Before the entries can be
modified, you must first create the modify_statements file with the appropriate LDIF update
statements; LDIF update statements are described in Section 4, “LDIF Update Statements”.
The bind DN is cn=Directory Manager, which has permissions to edit any entry in the
database, and the password is King-Pin.
Chapter 2. Creating Directory Entries
28