Shell and Batch Scripts
228
Netscape Directory Server Configuration, Command, and File Reference • December 2001
ldif2ldap (Perform import operation over LDAP)
Performs an import operation over LDAP to the Directory Server. To run this script
the server must be running.
Syntax
Options
-x
Suffix(es) to be included.
-O
Request that only the core db is created without attribute indexes.
-c
Merge chunk size.
-g string
Generation of a unique ID. Type
none
for no unique ID to be generated
and
deterministic
for the generated unique ID to be name-based.
By default a time based unique ID is generated.
If you use the
deterministic
generation to have a name-based
unique ID, you can also specify the namespace you want the server to
use as follows:
-
g deterministic namespace_id
where
namespace_id
is a string of characters in the following format
00-xxxxxxxx-xxxxxxxx-xxxxxxxx-xxxxxxxx
Use this option if you want to import the same LDIF file into two
different directory servers, and you want the contents of both
directories to have the same set of unique IDs. If unique IDs already
exist in the LDIF file you are importing, then the existing IDs are
imported to the server regardless of the options you have specified.
-G
namespace_id
Generates a namespace ID as a name-based unique ID. This is the same
as specifying the
-g deterministic
option.
Shell script (UNIX)
ldif2ldap -D rootdn -w password -f filename
Batch file (NT)
ldif2ldap -D rootdn -w password -f filename
-D
User DN with root permissions, such as Directory Manager.
-w
Password associated with the user DN.