Page created: 22 Jul 2020
|
Page updated: 12 Dec 2022
| 1 min read
8.2 Product PingDirectory Directory Capability Product documentation Content Type Administration User task IT Administrator Administrator Audience Software Deployment Method LDAP Standards, specifications, and protocols
-
Use the ldapmodify tool’s --useTransaction
option. It provides a mechanism for processing multiple operations as part of a
single batched transaction. Create a batch text file with the changes that you
want to apply as a single atomic unit:
dn:uid=user.3,ou=People,dc=example,dc=com changetype: delete dn:uid=user.1,ou=People,dc=example,dc=com changetype: modify replace: pager pager: +1 383 288 1090
-
Use ldapmodify with the --useTransaction
and --filename options to run the batched transaction.
$ bin/ldapmodify --useTransaction --filename test.ldif
#Successfully created a transaction with transaction ID 400 #Processing DELETE request for uid=user.3,ou=People,dc=example,dc=com #DELETE operation successful for DN uid=user.3,ou=People,dc=example,dc=com #This operation will be processed as part of transaction 400 #Processing MODIFY request for uid=user.1,ou=People,dc=example,dc=com #MODIFY operation successful for DN uid=user.1,ou=People,dc=example,dc=com #This operation will be processed as part of transaction 400 #Successfully committed transaction 400