Adding Entries Using ldapmodify
Here is a typical example of how to use the
directory. Suppose that:
•
You want to create the entries specified in the file
•
You have created a database administrator who has the authority to modify the
entries and whose distinguished name is
•
The database administrator's password is
•
The server is located on
•
The server uses port number
In this example, the LDIF statements in the
type. They follow the format defined in "LDIF File Format," on page 573.
To add the entries, you must enter the following command:
ldapmodify -a -D "cn=Directory Manager" -w King-Pin -h cyclops -p
845 -f new.ldif
The following table describes the
Description of ldapmodify Parameters Used for Adding Entries
Table 2-2
Parameter Name
-a
-D
-w
-h
-p
-f
ldapmodify
cn=Directory Manager
.
cyclops
.
845
new.ldif
ldapmodify
Description
Specifies that the modify operation will add new entries to the
directory.
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.
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 56.
Managing Entries from the Command-Line
utility to add entries to the
.
new.ldif
.
King-Pin
file do not specify a change
parameters used in the example:
Chapter 2
Creating Directory Entries
.
59
Need help?
Do you have a question about the DIRECTORY SERVER 7.1 - ADMINISTRATOR and is the answer not in the manual?
Questions and answers