PingDirectory

Running an offline import

To import LDIF data encoded with the UTF-8 character set, run the import-ldif tool offline.

This data can come from LDIF files, compressed LDIF files (GZIP format), or from data generated with a MakeLDIF template.

You do not need to authenticate as an administrator when performing offline LDIF imports.

Performing an offline import

Steps

  1. Confirm the PingDirectory server is offline.

  2. To import data from an LDIF file, use the import-ldif command.

    Do not specify any connection arguments when running the command.

    Example:

    $ bin/import-ldif --backendID userRoot --ldifFile /path/to/data.ldif \
      --rejectFile /path/to/reject.ldif --skipFile /path/to/skip.ldif

Performing an offline LDIF import using a compressed file

Steps

  1. Confirm the PingDirectory server is offline.

  2. To import data from a compressed gzip formatted file, use the import-ldif command.

    You must include the --isCompressed option to indicate that the input file is compressed.

    Do not specify any connection arguments when running the command.

    Example:

    $ bin/import-ldif --backendID userRoot --isCompressed \
      --ldifFile /path/to/data.gz --rejectFile /path/to/reject.ldif \
      --skipFile /path/to/skip.ldif

Performing an offline LDIF import using a MakeLDIF template

Steps

  1. Confirm the PingDirectory server is offline.

  2. Use the import-ldif command to import data from a MakeLDIF template, which is located in the <server-root>/config/MakeLDIF directory.

    Do not specify any connection arguments when running the command.

    Example:

    The following example uses the standard data template and generates 10,000 sample entries, and then imports the file to the server.

    $ bin/import-ldif --backendID userRoot \
      --templateFile config/MakeLDIF/example.template