Red Hat Directory Server 8.0 Administrator's Guide
Table 4.2. ldif2db Parameters
For more information about using this script, see the Directory Server Configuration, Command,
and File Reference.
1.3.2. Importing Using the ldif2db.pl Perl Script
As with the ldif2db script, the ldif2db.pl script overwrites the data in the specified database.
This script requires the server to be running in order to perform the import.
CAUTION
This script overwrites the data in the database.
1. Open the Directory Server instance directory.
cd /usr/lib/dirsrv/slapd-instance_name
2. Run the ldif2db script.
ldif2db -D "cn=Directory Manager" -w secretpwd
-i /var/lib/dirsrv/slapd-instance_name/ldif/demo.ldif -n Database1
For more information about using this script, see the Directory Server Configuration,
Command, and File Reference.
NOTE
You do not need root privileges to run the script, but you must authenticate as
the Directory Manager.
Option Description
-D Specifies the DN of the administrative user.
-w Specifies the password of the administrative
user.
-i Specifies the LDIF files to be imported. This
option is required. To important multiple LDIF
Chapter 4. Populating Directory Databases
118