Metrics Engine Documentation Index
Command-Line Tool Reference Home

ldif-diff

Description
Examples
Arguments

Description

Compare the contents of two LDIF files, the output being an LDIF file needed to bring the source file in sync with the target.

The 'ldif-diff' tool should not be used on very large LDIF files because it stores the contents of each file in memory while computing the difference. The memory used by ldif-diff can be customized by editing the ldif-diff.java-args setting in the config/java.properties file and running dsjavaproperties.

Examples

Compare actual.ldif to expected.ldif. The changes needed to bring actual.ldif in-sync with expected.ldif are written to STDOUT:
ldif-diff --sourceLDIF actual.ldif --targetLDIF expected.ldif

Arguments

-V
--version

Description Display Metrics Engine version information

-H
--help

Description Display general usage information

--help-debug

Description Display help for using debug options
Advanced Yes

-s {file}
--sourceLDIF {file}

Description LDIF file to use as the source data
Required Yes
Multi-Valued No

-t {file}
--targetLDIF {file}

Description LDIF file to use as the target data
Required Yes
Multi-Valued No

-o {file}
--outputLDIF {file}

Description File to which the output should be written
Required No
Multi-Valued No

-O
--overwriteExisting

Description Any existing output file should be overwritten rather than appending to it

-i
--includeOperational

Description Operational attributes will also be compared in addition to user attributes

-S
--singleValueChanges

Description Each attribute-level change should be written as a separate modification per attribute value rather than one modification per entry