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:
- Create an LDIF file with 1000
ADD
operations to create user entries. - Modify all entries by changing their
cn
,uid
,sn
attributes. - Add additional 10 user entries.
- Perform 100
MODRDN
operations. - Delete 100 entries
- 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