The PingDirectory Server provides LDIF templates that can be used to generate sample entries to initialize your server. You can generate the sample data with the make-ldif utility together with template files that come bundled with the ZIP build, or you can use templates files that you create yourself. The templates create sequential entries that are convenient for testing the PingDirectory Server with a range of dataset sizes. The Directory Server templates are located in the config/MakeLDIF.

To randomize the data, the make-ldif command has a --randomSeed option that can be used to seed the random number generator. If this option is used with the same seed value, the template will always generate exactly the same LDIF file.

The sample data templates generate a dataset with basic access control privileges that grants anonymous read access to anyone, grants users the ability to modify their own accounts, and grants the Admin account full privileges. The templates also include the uid=admin and ou=People entries necessary for a complete dataset. You can bypass the make-ldif command entirely and use the --templateFile option with the import-ldif tool.

  • Use the make-ldif command to generate sample data. The command generates 10,000 sample entries and writes them to an output file, data.ldif. The random seed generator is set to 0.
    $ bin/make-ldif --templateFile config/MakeLDIF/example-10k.template \
      --ldifFile /path/to/data.ldif --randomSeed 0