Chapter 4. Populating Directory Databases

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

-D

-w

-i

Description

Specifies the DN of the administrative user.

Specifies the password of the administrative user.

Specifies the LDIF files to be imported. This option is required. To important multiple LDIF

118

Page 138
Image 138
HP UX Red Hat Direry Server Software manual Importing Using the ldif2db.pl Perl Script, Ldif2db Parameters