![Netscape NETSCAPE DIRECTORY SERVER 6.02 Скачать руководство пользователя страница 54](http://html1.mh-extra.com/html/netscape/netscape-directory-server-6-02/netscape-directory-server-6-02_administrators-manual_1674673054.webp)
Managing Entries From the Command Line
54
Netscape Directory Server Administrator’s Guide • May 2002
To create a database suffix (such as
dc=example,dc=com
) using
ldapmodify
you
must bind to the directory as the Directory Manager.
Adding Entries Using ldapmodify
Here is a typical example of how to use the
ldapmodify
utility to add entries to the
directory. Suppose that:
•
You want to create the entries specified in the file
new.ldif
.
•
You have created a database administrator who has the authority to modify the
entries, and whose distinguished name is
cn=Directory Manager,
dc=example,dc=com
•
The database administrator’s password is
King-Pin
.
•
The server is located on
cyclops
.
•
The server uses port number
845
.
In this example, the LDIF statements in the
new.ldif
file do not specify a change
type. They follow the format defined in “LDIF File Format,” on page 489.
To add the entries, you must enter the following command:
ldapmodify -a -D "cn=Directory Manager,dc=example,dc=comd" -w
King-Pin -h cyclops -p 845 -f new.ldif
The following table describes the
ldapmodify
parameters used in the example:
Table 2-2
Description of ldapmodify Parameters Used for Adding Entries
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.
-
p
Specifies the port number that the server uses.
Содержание NETSCAPE DIRECTORY SERVER 6.02
Страница 1: ...Administrator s Guide Netscape Directory Server Version6 02 May 2002 ...
Страница 16: ...16 Netscape Directory Server Administrator s Guide May 2002 ...
Страница 20: ...20 Netscape Directory Server Administrator s Guide May 2002 ...
Страница 40: ...Starting the Server in Referral Mode 40 Netscape Directory Server Administrator s Guide May 2002 ...
Страница 74: ...Maintaining Referential Integrity 74 Netscape Directory Server Administrator s Guide May 2002 ...
Страница 138: ...Using Referrals 138 Netscape Directory Server Administrator s Guide May 2002 ...
Страница 258: ...Compatibility with Earlier Releases 258 Netscape Directory Server Administrator s Guide May 2002 ...
Страница 274: ...Setting Resource Limits Based on the Bind DN 274 Netscape Directory Server Administrator s Guide May 2002 ...
Страница 330: ...Solving Common Replication Conflicts 330 Netscape Directory Server Administrator s Guide May 2002 ...
Страница 374: ...Attribute Name Quick Reference Table 374 Netscape Directory Server Administrator s Guide May 2002 ...
Страница 390: ...Configuring LDAP Clients to Use SSL 390 Netscape Directory Server Administrator s Guide May 2002 ...
Страница 412: ...Monitoring Database Link Activity 412 Netscape Directory Server Administrator s Guide May 2002 ...
Страница 432: ...Miscellaneous Tuning Tips 432 Netscape Directory Server Administrator s Guide May 2002 ...
Страница 434: ...434 Netscape Directory Server Administrator s Guide May 2002 ...
Страница 468: ...PTA Plug In Syntax Examples 468 Netscape Directory Server Administrator s Guide May 2002 ...
Страница 488: ...488 Netscape Directory Server Administrator s Guide May 2002 ...
Страница 502: ...Storing Information in Multiple Languages 502 Netscape Directory Server Administrator s Guide May 2002 ...
Страница 522: ...Searching an Internationalized Directory 522 Netscape Directory Server Administrator s Guide May 2002 ...
Страница 528: ...Examples of LDAP URLs 528 Netscape Directory Server Administrator s Guide May 2002 ...