Adding and Modifying Entries Using ldapmodify
23
• If the server detects an attribute or object class in the entry that is not known to the server, then
the modify operation will fail when it reaches the erroneous entry. All entries that were processed
before the error was encountered will be successfully added or modified. If you run
ldapmodify
with the
-c
option (do not stop on errors), all correct entries processed after the erroneous entry will
be successfully added or modified.
• If a required attribute is not present, the modify operation fails. This happens even if the offending
object class or attribute is not being modified.
NOTE
To create the root entry a database suffix (such as
dc=example,dc=com
) using
ldapmodify
, you must bind to the directory as the Directory Manager.
2.2.4.1. Adding Entries Using ldapmodify
Typically, to add the 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. For example:
ldapmodify -a -D "cn=Directory Manager" -w King-Pin -h cyclops -p 845 -f new.ldif
This
ldapmodify
example has the following values:
• The entries to be created are specified in the file
new.ldif
. (In this example, the LDIF statements
in the
new.ldif
file do not specify a change type. They follow the format defined in
Section A.1,
“About the LDIF File Format”
.)
• The Directory Manager is a database administrator who has the authority to modify the entries, and
its password is
King-Pin
.
• The hostname is
cyclops
.
• The server uses port number
845
.
Table 2.2, “ldapmodify Parameters Used for Adding Entries”
describes the
ldapmodify
parameters
used in the example.
Parameter Name
Description
-a
Specifies that the modify operation will add new
entries to the directory.
-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.
Содержание DIRECTORY SERVER 8.0
Страница 18: ...xviii ...
Страница 29: ...Configuring the Directory Manager 11 6 Enter the new password and confirm it 7 Click Save ...
Страница 30: ...12 ...
Страница 112: ...94 ...
Страница 128: ...110 ...
Страница 190: ...Chapter 6 Managing Access Control 172 4 Click New to open the Access Control Editor ...
Страница 224: ...206 ...
Страница 324: ...306 ...
Страница 334: ...316 ...
Страница 358: ...340 ...
Страница 410: ...392 ...
Страница 420: ...402 ...
Страница 444: ...426 ...
Страница 454: ...436 ...
Страница 464: ...446 ...
Страница 484: ...466 ...
Страница 512: ...494 ...
Страница 522: ...504 ...