db2ldif.pl [ -v]-Drootdn { -wpassword -w - -jfilename } { -nbackendInstance -sincludeSuffix ... } [ -xexcludeSuffix ... ] [ -aoutputFile] [ -N ] [ -r ] [ -C ] [ -u ] [ -U ] [ -m ] [ -E ] [ -1 ] [ M ]

Options To run this script, the server must be running, and either the -nor -soption is required.

Table 7-22 db2ldif.pl options

Option

Description

-1

Deletes, for reasons of backward compatibility, the first line of the LDIF file that gives the

 

version of the LDIF standard.

-aoutputFile

Gives the file name of the output LDIF file.

-C

Uses only the main database file.

-Drootdn

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

-m

Sets minimal base-64 encoding.

-n

Gives the instance to be exported.

backendInstance

 

-M

Uses multiple files for storing the output LDIF, with each instance stored in instance

 

filename (where filename is the file name specified for -aoption).

-N

Suppresses printing sequential numbers.

-o

Sets the output LDIF to be stored in one file by default with each instance stored in

 

instance_filename.

-r

Exports the information required to initialize a replica when the LDIF is imported.

 

The LDIF file, which is created with the db2ldif.pl script, can be imported using the

 

ldif2db.pl script. When it is imported, if the -roption was used, then the database is

 

automatically initialized as a replica.

 

See “ldif2db.pl (Import)” for information on importing an LDIF file.

-sincludeSuffix

Gives suffixes to be included or the subtrees to be included if -nhas been used.

-u

Requests that the unique ID is not exported.

-U

Requests that the output LDIF is not folded.

-v

Verbose mode.

-wpassword

Gives the password associated with the user DN.

-xexcludeSuffix

Gives suffixes to be excluded.

7.4.6 fixup-memberof.pl (Regenerate memberOf attributes)

Regenerates and updates memberOf on user entries to coordinate changes in group membership.

To run this script, the server must be running. The script creates an entry in the directory that launches this dynamic task.

Syntax

fixup-memberof.pl-Drootdn { -wpassword -w - -jfilename } -bbaseDN [ -ffilter ] [ -v ]

Options

7.4 Perl scripts 229

Page 229
Image 229
HP UX Identity Security Software manual Fixup-memberof.pl Regenerate memberOf attributes, 22 db2ldif.pl options