Red Hat Directory Server 8.0 Administrator's Guide

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.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 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
Command-Line
27