Syntax of SlapTool.exe

  • 7940317
  • 19-Aug-2009
  • 26-Apr-2012

Environment

SecureLogin SSO

Situation

What is the syntax of the SlapTool.exe?

slaptool.exe syntax

Resolution

The SecureLogin application provisioning tool is installed (into the SecureLogin directory) when you select the administration tools during SecureLogin installation.

To view the syntax, type:

slaptool -h

The following is displayed:

slaptool [-hlaspcPef] -r object_name_file | -o ""object"" [file ...]

Options:

-h

Display help message and exit (all other options are ignored)

-l

Exclude userIDs

-v

Exclude variables (passwords will not be exported in current version)

-a

Exclude applications

-s

Exclude settings

-p

Exclude password policies

-c

Exclude credsets

-p

Exclude active Passphrase question on export.

Excludes passphrase question and answer on import.

-e

Perform export rather than import

-r

object_name_file Specifies a file containing line-delimited object names on which to perform the operation

-o

object

Specifies a particular object on which to operate

-f

Use the cache file, rather than accessing a directory (cannot be used with -r or -o, and SecureLogin must be set to use Dummy mode - user will be selected interactively at runtime).

-k[password]

Used to enable the creation of a passphrase answer for individual users in LDAP and MS Active Directory environments.

It is mandatory for users to save a passphrase answer on first login to SecureLogin. The SLAP tool requires password authorization to save user data. The -k switch provides the user password, enabling automated creation of the passphrase answer. This answer can be manually changed by users after provisioning.

For example, the following command is used to import user data and a passphrase question and answer:

slaptool.exe -k password -o context filename.xml

[file ...]

Specifies one or more .xml files from which to read data (or to write to in the case of exporting). No file specification reads/writes data from/to

For example:

slaptool.exe -o ""CN=bernie.O=testo.T=DEVTEST"" initial_setup.xml