ldifmodify

The ldifmodify command makes changes to the contents of an LDIF file.

Synopsis

ldifmodifyoptions

Description

The ldifmodify command can be used to make changes to the contents of
an LDIF file. Although similar to the ldapmodify command, the ldifmodify command does
not connect to the directory server but rather operates locally on the LDIF
file. The command also does not accept change information on standard input. It
must read all changes from a file.

To make it possible to operate on very large LDIF files with
limited amounts of memory, the following limitations will be enforced on the types of
changes that can be made:

No modify DNs. Modify DN operations are not supported. Only add, delete, and modify operations will be allowed.

No concurrent modify or delete operations. It is not possible to modify or delete an entry that is to be added during the course of processing.

Options

All options (with the exception of --help and --version) are required. The
ldifmodify command accepts an option in either its short form (for example, -mchangeFile) or its long form equivalent (for example, --changesLDIFchangeFile).

-m, --changesLDIFchangeFile

Specify the path to the file containing the changes to apply. The contents of this file must be in LDIF change format.

-s, --sourceLDIFsourceFile

Specify the path to the source LDIF file, which contains the data to be updated.

-t, --targetLDIFtargetFile

Specify the path to the target LDIF file, which will consist of the data from the source LDIF with all of the specified changes applied.

-?, -H, --help

Display command usage information and exit without attempting to perform any additional processing.

-V, --version

Display the directory server version information and exit rather than attempting to run this command.

The following command updates a source file (-s) with changes listed in a
modify file (-m) and outputs to a target file (-t). For Windows platforms,
use the file paths for the modify file (for example, -m \temp\update.ldif), the source file
(for example, -s \temp\quentin.ldif), and the target file (for example, -s \temp\quentin_updated.ldif):