The following examples import an LDIF file using the
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
..\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
Option
-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
To import LDIF using
From the command line, change to the following directory:
1.
serverRoot/slapd-serverID/
Run the
2.
ldif2ldap
For more information about using this script, refer to Netscape Directory Server
Configuration, Command, and File Reference.
directory):
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
:
ldif2ldap
command-line script.
ldif2db.pl
options used in the examples:
Chapter 4
Populating Directory Databases
Importing Data
script. You do
149
Need help?
Do you have a question about the NETSCAPE DIRECTORY SERVER 6.1 - ADMINISTRATOR and is the answer not in the manual?