2013 ForgeRock AS makeldif1 OpenDJ ${docTargetVersion} makeldif generate test LDIF makeldif options template-file-path Description This utility can be used to generate LDIF data based on a definition in a template file, specified by template-file-path. The template-file-path can be one of the following: A full path to the template file such as /path/to/opendj/config/MakeLDIF/example.template. A relative path to the template file such as ../../my-test-data.template. A file name that specifies one of the template files that are built into the OpenDJ LDAP Toolkit, such as example.template, or people_and_groups.template. The OpenDJ LDAP Toolkit includes these built-in template and data files: cities List of more than 200 cities. example.template Template to generate a base entry and users in a branch ou=people,[suffix], where the default setting for suffix is suffix=dc=example,dc=com. first.names List of more than 8000 first names. last.names List of more than 13000 last names. people_and_groups.template Template to generate a base entry, users, and groups. states List of US states by their two-character codes. streets List of more than 70 street names. Options The following options are supported. A constant that overrides the value set in the template file. Repeat this argument as necessary. The path to the LDIF file to be written. Path to look for resources (such as data files). The makeldif command looks for resources in the following locations in this order: The current directory where the command is run. The resource path directory. The built-in files. The seed to use to initialize the random number generator. Default value: 0 Display version information. Display usage information. Exit Codes 0 The command completed successfully. 1 An error occurred. Examples The following example uses a built-in template and data files to generate a base entry, an ou=People entry, and 2000 user entries, instead of the default specified in the template, which is 10000. $ makeldif --outputLDIF test.ldif --constant numusers=2000 example.template Processed 1000 entries Processed 2000 entries LDIF processing complete. 2002 entries written See Also makeldif.template5