Chapter 23. Creating Test Entries
dsctl ldifgencommand creates LDIF files with different types of test entries. For example, you can use this LDIF file to populate a test instance or a sub-tree to test the performance of Directory Server with the example entries.
users: Creates an LDIF file that contains user entries.
groups: Creates an LDIF file that contains static group and member entries.
cos-def: Creates an LDIF file that either contains a classic pointer or an indirect Class of Service (CoS) definition.
cos-template: Creates an LDIF file that contains a CoS template.
roles: Creates an LDIF file that contains managed, filtered, or indirect role entries.
mod-load: Creates an LDIF file that contains modify operations. Import this file using the
nested: Creates an LDIF file that contains heavily nested entries in a cascading or fractal tree design.
dsctl ldifgencommand creates only the LDIF file. To load the file into your Directory Server instance, use the:
ldapmodifyutility after you created an LDIF file using the
ldapaddutility for all other options
nestedentry type, if you do not provide any command line options, the
dsctl ldifgencommand uses an interactive mode:
# dsctl instance_name ldifgen entry_type
23.1. Creating an LDIF File with Example User Entries
dsctl ldifgen userscommand to create an LDIF file with example user entries. For example, to create an LDIF file named
/tmp/users.ldifthat adds 100,000 generic users to the
# dsctl instance_name ldifgen users --suffix "dc=example,dc=com" --number 100000 --generic --ldif-file=/tmp/users.ldif
# dsctl instance_name ldifgen users --help