| | |
| | | </indexterm> |
| | | |
| | | <para>This section demonstrates the <command>ldifsearch</command>, |
| | | <command>ldifmodify</command>, and <command>ldifdiff</command> tools.</para> |
| | | <command>ldifmodify</command>, and <command>ldif-diff</command> tools.</para> |
| | | |
| | | <section xml:id="ldifsearch-example"> |
| | | <title>Searching in LDIF With <command>ldifsearch</command></title> |
| | |
| | | initials: AAA |
| | | |
| | | $ ldifmodify |
| | | --targetLDIF generated.ldif |
| | | --sourceLDIF generated.ldif |
| | | --changesLDIF changes.ldif |
| | | --targetLDIF new.ldif</screen> |
| | | |
| | |
| | | same size as the source LDIF file.</para> |
| | | </section> |
| | | |
| | | <section xml:id="ldifdiff-example"> |
| | | <title>Comparing LDIF With <command>ldifdiff</command></title> |
| | | <section xml:id="ldif-diff-example"> |
| | | <title>Comparing LDIF With <command>ldif-diff</command></title> |
| | | |
| | | <para>The <command>ldifdiff</command> command reports differences between |
| | | <para>The <command>ldif-diff</command> command reports differences between |
| | | two LDIF files in LDIF format.</para> |
| | | |
| | | <screen>$ ldifdiff old.ldif new.ldif |
| | | <screen>$ ldif-diff --sourceLDIF old.ldif --targetLDIF new.ldif |
| | | dn: uid=user.0,ou=People,dc=example,dc=org |
| | | changetype: modify |
| | | add: initials |
| | |
| | | |
| | | </screen> |
| | | |
| | | <para>As the <command>ldifdiff</command> command reads both files into |
| | | <para>As the <command>ldif-diff</command> command reads both files into |
| | | memory, constructing tree maps to perform the comparison, the command |
| | | is designed to work with small files and fragments. The command can quickly |
| | | run out of memory when calculating differences between large files.</para> |