Search

23.4. Creating an LDIF File with Example Modification Statements

download PDF
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
Red Hat logoGithubRedditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.