Server User Manual

ldif2ldap (Performs Import Operation over LDAP)
287
Option Description
By default, a time-based unique ID is generated.
When using the deterministic generation to
have a name-based unique ID, it is also possible
to specify the namespace for the server to use,
as follows:
-g deterministic namespace_id
namespace_id is a string of characters in the
format 00-xxxxxxxx-xxxxxxxx-xxxxxxxx-
xxxxxxxx.
Use this option to import the same LDIF file into
two different Directory Servers and the contents
of both directories should have the same set
of unique IDs. If unique IDs already exist in the
LDIF file being imported, then the existing IDs
are imported to the server, regardless of the
options specified.
-G namespaceId Generates a namespace ID as a name-based
unique ID. This is the same as specifying the -g
deterministic option.
-i ldifFile Gives the names of the input LDIF files. When
multiple files are imported, they are imported in
the order they are specified on the command
line.
-n backendInstance Gives the instance to be imported. Ensure that
the specified instance corresponds to the suffix
contained by the LDIF file; otherwise, the data
contained by the database is deleted, and the
import fails.
-O Requests that only the core database is created,
without attribute indexes.
-s includeSuffix Gives the suffixes to be included or to specify the
subtrees to be included if -n has been used.
-x excludeSuffix Gives the suffixes to be excluded.
Table 7.9. ldif2db Options
7.3.9. ldif2ldap (Performs Import Operation over LDAP)
Performs an import operation over LDAP to the Directory Server. To run this script, the server must be
running.
Syntax
ldif2ldap [ -D rootdn ] [ -w password ] [ -f filename ]