Red Hat Directory Server 8.0 Administrator's Guide

1
This is the location for Red Hat Enterprise Linux. File locations for other platforms are listed in Section 1, “Directory
Server File Locations”.
3. Right-click the database, and select Initialize Database.
Alterntatively, select Initialize Database from the Object menu.
4. In the LDIF file field, enter the full path to the LDIF file to import, or click Browse.
5. If the Console is running from a machine local to the file being imported, click OK and
proceed with the import immediately. If the Console is running from a machine remote to the
server containing the LDIF file, select one of the following options, then click OK:
From local machine. Indicates that the LDIF file is located on the local machine.
From server machine. Indicates that the LDIF file is located on a remote server.
The default LDIF directory is /var/lib/dirsrv/slapd-instance_name/ldif.
1
1.3. Importing from the Command-Line
There are three methods for importing data through the command-line:
Using ldif2db. This import method overwrites the contents of the database and requires the
server to be stopped; see Section 1.3.1, “Importing Using the ldif2db Command-Line Script”.
Using ldif2db.pl. This import method overwrites the contents of the database while the server
is still running; see Section 1.3.2, “Importing Using the ldif2db.pl Perl Script”.
Using ldif2ldap. This method appends the LDIF file through LDAP. This method is useful to
append data to all of the databases; see Section 1.3.3, “Importing Using the ldif2ldap
Command-Line Script”.
NOTE
To import a database that has been encrypted, use the -E option with the script.
See Section 2.3.5, “Exporting and Importing an Encrypted Database” for more
information.
1.3.1. Importing Using the ldif2db Command-Line Script
The ldif2db script overwrites the data in the specified database. Also, the script requires that
the Directory Server be stopped when the import begins.
By default, the script first saves and then merges any existing o=NetscapeRoot configuration
information with the o=NetscapeRoot configuration information in the files being imported.
Chapter 4. Populating Directory Databases
116