23.4. Creating an LDIF File with Example Modification Statements

Use the dsctl ldifgen mod-load command to create an LDIF file that contains update operations.
# dsctl instance_name ldifgen mod-load --parent dc=example,dc=com --num-users 1000 --create-users --mod-users 1000 --add-users 10 --del-users 100 --mod-users 1000 --modrdn-users 100 --mod-attrs cn uid sn --delete-users
This command creates the /tmp/modifications.ldif file with the statements that do the following:
  1. Create an LDIF file with 1000 ADD operations to create user entries.
  2. Modify all entries by changing their cn, uid, sn attributes.
  3. Add additional 10 user entries.
  4. Perform 100 MODRDN operations.
  5. Delete 100 entries
  6. Delete all remaining entries at the end.
For further details and other options you can use to create the LDIF file, enter:
# dsctl instance_name ldifgen mod-load --help