Creating A Root Entry From The Command Line; Adding Entries Using Ldif - Netscape DIRECTORY SERVER 6.2 - ADMINISTRATOR Administrator's Manual

Table of Contents

Advertisement

Creating a Root Entry From the Command Line

You can use the
ldapmodify
database. For example, you might add the new root entry as follows:
prompt> ldapmodify -a -D bindDN -w password
The
utility binds to the server and prepares it to add an entry.
ldapmodify
You create the new root object as follows:
dn: Suffix_Name
objectclass: newobjectclass
The DN corresponds to the DN of the root or sub-suffix contained by the database.
The
value depends upon the type of object class you are adding to the
newobjectclass
database. You may need to specify additional mandatory attributes depending
upon the root object you add.
NOTE
You can use this method only if you have one database per suffix. If
you create a suffix that is stored in several databases, you must use
the
ldif2db
will hold the new entries. For information, refer to "Importing
From the Command Line," on page 147.

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:
Define the entries in an LDIF file.
1.
LDIF is described in Appendix A, "LDAP Data Interchange Format."
Import the LDIF file from the Directory Server Console.
2.
See "Performing an Import From the Console," on page 144 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
command with the
ldapmodify
command-line utility to create a new root entry in a
utility with the
option to specify the database that
-n
option.
-f
Managing Entries From the Command Line
Chapter 2
Creating Directory Entries
57

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.2

Table of Contents