Table 7-23 fixup-memberof.pl options

Option

Description

-bbaseDN

The DN of the subtree containing the entries to update.

 

 

-Drootdn

Gives the user DN with root permissions, such as Directory Manager. The default is the DN

 

of the Directory Manager, which is read from the nsslapd-rootattribute under cn=config.

 

 

-ffilter

An LDAP query filter to use to select the entries within the subtree to update. If there is no

 

filter set, then the memberOf attribute is regenerated for every entry in the subtree.

 

 

-jfilename

The name of the file containing the password.

 

 

-v

Verbose mode.

 

 

-wpassword

The password associated with the user DN.

 

 

-w -

Prompts for the password associated with the user DN.

 

 

7.4.7 ldif2db.pl (Import)

To run this script, the server must be running. The script creates an entry in the directory that launches this dynamic task. The entry is generated based upon the values provided for each option. Ellipses indicate that multiple occurrences are allowed.

Syntax

ldif2db.pl [ -v ] -Drootdn { -wpassword -w - -jfilename } [{ -nbackendInstance

}-sincludeSuffix ] [ -xexcludeSuffix ] [ -O ] [ -c ] [ -gstring ] [ -GnamespaceId ] [ -ifilename ] [ -E ]

Options

Table 7-24 ldif2db.pl options

Option

Description

-c

Merges chunk size.

 

 

-Drootdn

Specifies the user DN with root permissions, such as Directory Manager.

 

 

-E

Decrypts encrypted data during export. 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 namespaceId

 

Where namespaceId 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.

 

 

-ifilename

Specifies the file name of the input LDIF files. When multiple files are imported, they are

 

imported in the order they are specified on the command line.

 

 

-jfilename

Specifies the path, including the file name, to the file that contains the password associated

 

with the user DN.

-n backendInstance Specifies the instance to be imported.

230 Command-line scripts