Netscape DIRECTORY SERVER 6.01 - ADMINISTRATOR Administrator's Manual page 496

Table of Contents

Advertisement

Defining Directories Using LDIF
To create a directory using LDIF, follow these steps:
Create an ASCII file containing the entries you want to add in LDIF format.
1.
Make sure each entry is separated from the next by an empty line. You should
use just one line, and the first line of the file must not be blank or else the
ldapmodify
Entries Using LDIF," on page 491.
Begin each file with the topmost, or root, entry in the database.
2.
The root entry must represent the suffix or sub-suffx contained by the
database. For example, if your database has the suffix
first entry in your directory must be
dn: dc=example,dc=com
For information on suffixes, see the "Suffix" parameter described in the
Netscape Directory Server Configuration, Command, and File Reference.
Make sure that an entry representing a branch point in the LDIF file is placed
3.
before the entries that you want to create under that branch.
For example, if you want to place an entry in a people and a group subtree,
create the branch point for those subtrees before creating entries within those
subtrees.
Create the directory from the LDIF file using one of the following methods:
4.
496
Netscape Directory Server Administrator's Guide • January 2002
utility will exit. For more information, see "Specifying Directory
Directory Server Console
Use this method if you have a small database to import (less than 1000
entries). See "Performing an Import From the Console," on page 138.
command-line utility
ldif2db
Use this method if you have a large database to import (more than 1,000
entries). See "Importing Using the ldif2db Command-Line Script," on
page 141.
command-line utility with the
ldapmodify
Use this method if you currently have a directory database, but you are
adding a new subtree to the database. Unlike the other methods for
creating the directory from an LDIF file, Directory Server must be running
before you can add a subtree using
Modifying Entries Using ldapmodify," on page 53.
dc=example,dc=com
parameter
-a
. See "Adding and
ldapmodify
, the

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.01

Table of Contents