The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

ldifdiff.pl -- Generates LDIF change diff between two sorted LDIF files.

DESCRIPTION

ldifdiff.pl takes as input two sorted LDIF files, source and target, and generates on standard output the LDIF changes needed to transform the target into the source.

SYNOPSIS

ldifdiff.pl -k|--keyattr keyattr [-a|--sourceattrs attr1,attr2,...] [-c|--ciscmp attr1,...] [-n|--numcmp attr1,...] [--dnattrs attr1,...] [--sharedattrs attr1,...] sourcefile targetfile

OPTIONS

-k|--keyattr keyattr

Specifies the key attribute to use when comparing source and target entries. Entries in both LDIF files must be sorted by this attribute for comparisons to be meaningful. ldifsort.pl can be used to sort LDIF files by a given attribute.

-a|--sourceattrs attr1,attr2,...

(Optional) Specifies a list of attributes to consider when comparing source and target entries. By default, all attributes are considered.

-c|--ciscmp attr1,...

(Optional) Compare values of the specified attributes case-insensitively. The default set is: mail manager member objectclass owner uid uniqueMember

-n|--numcmp attr1,...

(Optional) Compare values of the specified attributes numerically. The default set is: employeeNumber

--dnattrs attr1,...

(Optional) Specifies a list of attributes to be treated as DNs when being compared. The default set is: manager member owner uniqueMember

--sharedattrs attr1,...

(Optional) Specifies a list of attribues to be treated as "shared" attributes, where the source may not be a sole authoritative source. When modifying these attributes, separate "delete" and "add" LDIF changes are generated, instead of a single "replace" change. The default set is objectClass.

sourcefile

Specifies the source LDIF file.

targetfile

Specifies the target LDIF file.

AUTHOR

Kartik Subbarao <subbarao@computer.org>