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

Table of Contents

Advertisement

Run the
2.
ldif2db.pl
For more information about using this perl script, refer to Netscape Directory
Server Configuration, Command, and File Reference.
Two examples of performing an import using
Windows NT batch file:
..\bin\slapd\admin\bin\perl ldif2db.pl -D "cn=Directory Manager"
-w secretpwd -i c:\netscape\servers\slapd-dirserver\ldif\demo.ldif
-n Database1
You need to run the script from the following directory on NT
CAUTION
machines:
example.
UNIX shell script:
ldif2db.pl -D "cn=Directory Manager" -w secretpwd
-i /usr/netscape/servers/slapd-dirserver/ldif/demo.ldif
-n Database1
The following table describes the
Option Name
-D
-w
-i
-n
Importing Using the ldif2ldap Command-Line Script
The
script appends the LDIF file through LDAP. Using this script you
ldif2ldap
import data to all directory databases at the same time. The server must be running
in order to import using
perl script.
..\bin\slapd\admin\bin\perl
ldif2db.pl
Description
Specifies the DN of the administrative user.
Specifies the password of the administrative user.
Specifies the LDIF file(s) to be imported. This option is
required. You can use multiple -i arguments to import more
than one LDIF file at a time. When you import multiple files,
the server imports the LDIF files in the order in which you
specify them from the command line.
Specifies the name of the database into which you are
importing the data.
.
ldif2ldap
follow:
ldif2db.pl
. This path appears in the
options used in the examples:
Chapter 4
Populating Directory Databases
Importing Data
143

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.01

Table of Contents