HP-UX Directory Server Administrator Guide HP-UX Directory Server Version 8.1 (5900-3098, May 2013)

By default, the script first saves then merges any existing o=NetscapeRoot configuration
information with the o=NetscapeRoot configuration information in the files being imported.
CAUTION:
This script overwrites the data in the database whether the command is successful or not.
To import LDIF:
1. Stop the server. For more information about the command to start and stop the HP-UX Directory
Server, see“Starting and Stopping Servers” (page 19).
/opt/dirsrv/slapd-instance_name/stop-slapd
2. Run the ldif2db command line script.
/opt/dirsrv/slapd-instance_name/ldif2db -n Database1 \
-i /var/opt/dirsrv/slapd-instance_name/ldif/demo.ldif \
-i /var/opt/dirsrv/slapd-instance_name/ldif/demo2.ldif
For more information about using the ldif2db script, see the HP-UX Directory Server
configuration, command, and file reference.
CAUTION:
If the database specified in the -n option does not correspond with the suffix contained by
the LDIF file, all the data contained by the database is deleted, and the import fails. Make
sure that the database name is not misspelled.
Table 17 ldif2db options
DescriptionOption
Specifies the full path name of the LDIF files to be imported. This option is required. To import more
than one LDIF file at a time, use multiple -i arguments. When multiple files are imported, the
server imports the LDIF files in the order that they are specified from the command line.
-i
Specifies the name of the database to which to import the data.-n
For more information about using the ldif2db script, see the HP-UX Directory Server configuration,
command, and file reference.
152 Populating Directory Databases