![Netscape NETSCAPE DIRECTORY SERVER 6.02 Скачать руководство пользователя страница 53](http://html1.mh-extra.com/html/netscape/netscape-directory-server-6-02/netscape-directory-server-6-02_administrators-manual_1674673053.webp)
Managing Entries From the Command Line
Chapter
2
Creating Directory Entries
53
Adding Entries Using LDIF
You can use an LDIF file to add multiple entries or to import an entire database. To
add entries using an LDIF file and the Directory Server Console:
1.
Define the entries in an LDIF file.
LDIF is described in Appendix A, “LDAP Data Interchange Format.”
2.
Import the LDIF file from the Directory Server Console.
See “Performing an Import From the Console,” on page 140 for information.
When you import the LDIF file, select “Append to database” on the Import
dialog box so that the server will only import entries that do not currently exist
in the directory.
You can also add entries described in an LDIF file from the command line using the
ldapmodify
command with the
-f
option.
Adding and Modifying Entries Using ldapmodify
You use the
ldapmodify
command to add and modify entries in an existing
Directory Server database. The
ldapmodify
command opens a connection to the
specified server using the distinguished name and password you supply, and
modifies the entries based on LDIF update statements contained in a specified file.
Because
ldapmodify
uses LDIF update statements,
ldapmodify
can do everything
that
ldapdelete
can do.
If schema checking is turned on when you use this utility, then the server performs
schema checking for the entire entry when it is modified:
•
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. This
situation can occur if you run the Directory Server with schema checking
turned off, add unknown object classes or attributes, and then turn schema
checking on.
For more information, see “Turning Schema Checking On and Off,” on page 339.
Содержание 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 ...