
Chapter 2. Creating Directory Entries
24
Parameter Name
Description
-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.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.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 2.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
.
• The hostname is
cyclops
.
• The server uses port number
845
.
Table 2.3, “ldapmodify Parameters Used for Modifying Entries”
describes the
ldapmodify
parameters used in the example.
Parameter Name
Description
-D
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.
-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.
Summary of Contents for DIRECTORY SERVER 8.0
Page 18: ...xviii ...
Page 29: ...Configuring the Directory Manager 11 6 Enter the new password and confirm it 7 Click Save ...
Page 30: ...12 ...
Page 112: ...94 ...
Page 128: ...110 ...
Page 190: ...Chapter 6 Managing Access Control 172 4 Click New to open the Access Control Editor ...
Page 224: ...206 ...
Page 324: ...306 ...
Page 334: ...316 ...
Page 358: ...340 ...
Page 410: ...392 ...
Page 420: ...402 ...
Page 444: ...426 ...
Page 454: ...436 ...
Page 464: ...446 ...
Page 484: ...466 ...
Page 512: ...494 ...
Page 522: ...504 ...