7.2.1. Input File

7.2.1. Input File

The PIN Generator can receive a list of DNs to modify in a text file specified by the input argument. If an input file is specified, then the tool compares the DNs returned by the filtered to the ones in the input file and updates only those DNs that match in the input file.

The input enables the user to provide the PIN Generator with an exact list of DNs to modify; it is also possible to provide the PIN Generator with PINs in plain text for all DNs or for specific DNs.

There are two common situations when using an input file is useful:

The format of the input file is the same as that of the output file (refer to Section 7.2.2, “Output File”) except for the status line. In the input file, PINs can be set for all the DNs in the file, for specific DNs, or for none of the DNs. If the PIN attribute is missing for a DN, the tool automatically generates a random PIN.

An input file looks like the following example:

dn:cn=user1, o=example.com

dn:cn=user2, o=example.com

...
dn:cn=user3, o=example.com

PINs can also be provided for the DNs in plain-text format; these PINs are hashed according to the command-line arguments.

dn:cn=user1, o=example.com
pin:pl229Ab

dn:cn=user2, o=example.com
pin:9j65dSf

...
dn:cn=user3, o=example.com
pin:3knAg60

NOTE

Hashed PINs cannot be provided to the tool.