Softerra LDAP Administrator HelpShow AllHide All

Unattended Import and Export

Sometimes it may be necessary to export or import directory data in the unattended mode. For example, you may want to set up a daily backup of your directory data, or to make an LDIF import as a part of your custom deployment scenario. That is where laimex tool comes to help.

laimex is a command line tool supplied with LDAP Administrator to import or export directory data without having to run the LDAP Administrator GUI. All parameters are entered via the command line and the tool is run in the unattended mode.

Syntax:

laimex [@argfile] [/?|h|help] [/v|version] [/i] [/d LDIF|DSML1|DSML2|CSV|TXT|HTML|EXCEL] /f filename [/s host:port] [/user user] [/pwd password] [/mech SIMPLE|GSS-SPNEGO|DIGEST-MD5] [/r rootDN] [/t filter] [/p BASE|ONE|SUB] [/a attrlist] [/lbs NONE|WIN|UNIX] [/page size] [/dh] [/di] [/xs] [/xc] [/cf fromDN] [/ct toDN] [/fs separator] [/vs separator] [/el SINGLE|MULTI] [/ec TEXT|GENERAL] [/eh]

Parameters:

/i

Specifies the document import mode. If not specified, the default mode is 'export'.

/d value

Specifies the type of an LDAP document to import from or export to. Possible values are:

  • LDIF

  • DSML1

  • DSML2

  • CSV

  • TXT

  • HTML

  • EXCEL

Learn more about these file formats.

/f filename

Specifies the name of an LDAP document file to import from or export to.

/s host:port

Specifies the host name and port of the target directory server. If not provided, the default value 'localhost:389' is used.

/user user

Specifies the user name used for authentication to the directory server

/pwd password

Specifies the user's password to authenticate to the directory server.

/mech value

Specifies the negotiation mechanism to use while authenticating to the server. Possible values are:

  • SIMPLE

  • GSS-SPNEGO

  • DIGEST-MD5

If this parameter is omitted, the GSS-SPNEGO will be used by default.

/r rootDN

Specifies the entry DN to start the export from. If this parameter is omitted, the default value "" (RootDSE) will be used.

/t filter

Specifies the LDAP search filter. If this parameter is omitted, the default value is (objectClass=*).

/p value

Specifies the search scope to use when searching for directory entries. Available values are:

  • BASE

  • ONE

  • SUB

If this parameter is omitted, the BASE will be used by default.

/a attrlist

Specifies a comma-separated list of attributes to look for during an LDAP search.

/lbs value

Specifies the way line breaks will be inserted in the result document while exporting the directory data. Possible values are:

  • NONE

  • WIN

  • UNIX

If this parameter is omitted, WIN will be used by default.

/page size

Turns on paging of results and specifies the page size. If this parameter is omitted, paging will be disabled.

/dh

Disables generating an extra header while saving results of a directory export operation. The extra header contains export date and time and information on where the data were exported from.

/di

Disables line indenting while generating results of a directory export operation. This option is applicable to DSML1, DSML2, and HTML. With this options enabled makes the resulting file easier to read, while the deactivation of this option makes the file smaller in size.

/xs

(Active Directory specific). Forces the application to exclude SAM- specific attributes from search results. With this options enabled, you exclude attributes that could be imported since they are 'synthetic' and are not actually kept in the DIT.

/xc

Collective attributes are excluded from the search results. With this options enabled you can avoid problems connected with import of collective attributes.

/cf fromDN

Specifies the suffix of an entry DN to replace.

/ct toDN

Specifies the suffix an entry DN part will be replaced with.

/fs separator

Specifies the field separator to be used when exporting TEXT and CVS documents. If this parameter is omitted, the default value ';' will be used.

/vs separator

Specifies the value separator to be used when exporting TEXT and CVS documents. If this parameter is omitted, the default value ',' will be used.

/el value

Specifies the EXCEL document type layout. Possible values are:

  • SINGLE

  • MULTI

Please refer to the file format overview to learn more about further details and differences between file formats. If this parameter is omitted, the default value SINGLE will be used.

Specifies cell format for the EXCEL document type. Possible values are:

  • TEXT

  • GENERAL

If this parameter is omitted, the default value SINGLE will be used. With this parameter set to GENERAL, EXCEL will be able to auto-detect the cell format depending on the value of each particular cell.

/eh

Forces to freeze the header of the EXCEL document keeping it in view while scrolling through the document.

 

See Also