Run the
2.
ldif2db.pl
For more information about using this Perl script, refer to Red Hat Directory
Server Configuration, Command, and File Reference.
The following example imports an LDIF file using the
not need
privileges to run the script, but you must authenticate as the
root
Directory Manager.
UNIX shell script:
ldif2db.pl -D "cn=Directory Manager" -w secretpwd
-i /opt/redhat-ds/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 Red Hat Directory Server
Configuration, Command, and File Reference.
perl script.
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.
script. You do
ldif2db.pl
options used in the examples:
Chapter 4
Populating Directory Databases
Importing Data
155
Need help?
Do you have a question about the DIRECTORY SERVER 7.1 - ADMINISTRATOR and is the answer not in the manual?
Questions and answers