![Netscape NETSCAPE DIRECTORY SERVER 6.02 Administrator'S Manual Download Page 145](http://html1.mh-extra.com/html/netscape/netscape-directory-server-6-02/netscape-directory-server-6-02_administrators-manual_1674673145.webp)
Importing Data
Chapter
4
Populating Directory Databases
145
2.
Run the
ldif2db.pl
perl script.
For more information about using this perl script, refer to Netscape Directory
Server Configuration, Command, and File Reference.
The following examples import an LDIF file using the
ldif2db.pl
script. You do
not need root privileges to run the script, but you must authenticate as the
directory manager.
Windows batch file (as shown in the example, you need to run the script from the
..\bin\slapd\admin\bin\perl
directory):
..\bin\slapd\admin\bin\perl ldif2db.pl -D "cn=Directory Manager"
-w secretpwd -i c:\netscape\servers\slapd-dirserver\ldif\demo.ldif
-n Database1
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
ldif2db.pl
options used in the examples:
Importing Using the ldif2ldap Command-Line Script
The
ldif2ldap
script appends the LDIF file through LDAP. Using this script you
import data to all directory databases at the same time. The server must be running
in order to import using
ldif2ldap
.
Option Name
Description
-D
Specifies the DN of the administrative user.
-w
Specifies the password of the administrative user.
-i
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.
-n
Specifies the name of the database into which you are
importing the data.
Summary of Contents for NETSCAPE DIRECTORY SERVER 6.02
Page 1: ...Administrator s Guide Netscape Directory Server Version6 02 May 2002 ...
Page 16: ...16 Netscape Directory Server Administrator s Guide May 2002 ...
Page 20: ...20 Netscape Directory Server Administrator s Guide May 2002 ...
Page 74: ...Maintaining Referential Integrity 74 Netscape Directory Server Administrator s Guide May 2002 ...
Page 138: ...Using Referrals 138 Netscape Directory Server Administrator s Guide May 2002 ...
Page 432: ...Miscellaneous Tuning Tips 432 Netscape Directory Server Administrator s Guide May 2002 ...
Page 434: ...434 Netscape Directory Server Administrator s Guide May 2002 ...
Page 468: ...PTA Plug In Syntax Examples 468 Netscape Directory Server Administrator s Guide May 2002 ...
Page 488: ...488 Netscape Directory Server Administrator s Guide May 2002 ...
Page 528: ...Examples of LDAP URLs 528 Netscape Directory Server Administrator s Guide May 2002 ...