Table 7-9 ldif2db options

Option

Description

-c

Merges chunk size.

 

 

-E

Encrypts data during import. This option is used only if database encryption is enabled.

 

 

-gstring

Generates 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. 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.

 

 

-GnamespaceId

Generates a namespace ID as a name-based unique ID. This is the same as specifying the

 

-g deterministic option.

 

 

-ildifFile

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 -nhas been used.

-x excludeSuffix Gives the suffixes to be excluded.

7.3.8 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 [ -Drootdn] [ -wpassword] [-ffilename]

Options

Table 7-10 ldif2ldap options

Option Description

-D rootdn Gives a user DN with root permissions, such as Directory Manager.

-f filename Gives the name of the file to be imported. When importing multiple files, the files are imported in the order they are specified on the command line.

-w password Gives the password associated with the user DN.

7.3.9 pwdhash (Prints encrypted passwords)

Prints the encrypted form of a password using one of the server's encryption algorithms. If a user cannot log in, use this script to compare the user's password to the password stored in the directory.

Syntax

7.3 Shell scripts 221