Data Governance Server Documentation Index
Command-Line Tool Reference Home

ldifmodify

Description
Examples
Arguments

Description

Apply a set of modify, add, and delete operations to data in an LDIF file.

Just like the ldapmodify tool can make changes to entries in an LDAP server, this tool makes changes to entries in an LDIF file. In addition, this tool does not accept changes over standard input.

For performance reasons, modify DN operations are not allowed by this tool, nor is it possible to modify an entry that is scheduled to be added or deleted in the same set of operations.

Examples

In the following example, the source.ldif file contains LDAP content to be modified and the changes.ldif file contains change records to be applied to the source file. Running the following command will write the LDAP content from the source file along with the requested changes to the result.ldif file:
ldifmodify --sourceLDIF source.ldif --changesLDIF changes.ldif \
     --targetLDIF result.ldif

Arguments

-V
--version

Description Display Data Governance Server version information

-H
--help

Description Display general usage information

--help-debug

Description Display help for using debug options
Advanced Yes

-s {ldifFile}
--sourceLDIF {ldifFile}

Description LDIF file containing the data to be updated
Required Yes
Multi-Valued No

--sourceEncryptionPassphraseFile {file}

Description The path to a file that contains the encryption passphrase needed to decrypt the source LDIF file if it is encrypted. If the source LDIF file is encrypted and this argument is not provided, then the tool will interactively prompt for the encryption passphrase. If a passphrase file is provided, then it must contain exactly one line that consists entirely of the passphrase
Required No
Multi-Valued No

-m {ldifFile}
--changesLDIF {ldifFile}

Description LDIF file containing the changes to apply
Required Yes
Multi-Valued No

--changesEncryptionPassphraseFile {file}

Description The path to a file that contains the encryption passphrase needed to decrypt the changes LDIF file if it is encrypted. If the changes LDIF file is encrypted and this argument is not provided, then the tool will interactively prompt for the encryption passphrase. If a passphrase file is provided, then it must contain exactly one line that consists entirely of the passphrase
Required No
Multi-Valued No

-t {ldifFile}
--targetLDIF {ldifFile}

Description File to which the updated data should be written
Required Yes
Multi-Valued No

--compressTarget

Description GZIP-Compress the data written to the target LDIF file

--encryptTarget

Description Encrypt the data written to the target LDIF file. If the --targetEncryptionPassphraseFile argument is provided, then that passphrase will be used to encrypt the file; otherwise, the tool will interactively prompt for the passphrase

--targetEncryptionPassphraseFile {file}

Description The path to a file that contains the encryption passphrase needed to encrypt the target LDIF file if the --encryptTarget argument is provided. If the target file is to be encrypted but no passphrase file is provided, then the tool will interactively prompt for the passphrase. If a passphrase file is given, then it must contain exactly one line that consists entirely of the passphrase
Required No
Multi-Valued No

--noSchemaCheck

Description Bypass schema checking