Questo contenuto non è disponibile nella lingua selezionata.

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

Formazione

Prova, acquista e vendi

Community

Informazioni sulla documentazione di Red Hat

Aiutiamo gli utenti Red Hat a innovarsi e raggiungere i propri obiettivi con i nostri prodotti e servizi grazie a contenuti di cui possono fidarsi.

Rendiamo l’open source più inclusivo

Red Hat si impegna a sostituire il linguaggio problematico nel codice, nella documentazione e nelle proprietà web. Per maggiori dettagli, visita ilBlog di Red Hat.

Informazioni su Red Hat

Forniamo soluzioni consolidate che rendono più semplice per le aziende lavorare su piattaforme e ambienti diversi, dal datacenter centrale all'edge della rete.

© 2024 Red Hat, Inc.