| File was renamed from opendj3/src/main/docbkx/shared/man-ldif-diff.xml |
| | |
| | | ! Copyright 2011-2012 ForgeRock AS |
| | | ! |
| | | --> |
| | | <refentry xml:id='ldif-diff-1' |
| | | <refentry xml:id='ldifdiff-1' |
| | | xmlns='http://docbook.org/ns/docbook' |
| | | version='5.0' xml:lang='en' |
| | | xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' |
| | |
| | | xmlns:xinclude='http://www.w3.org/2001/XInclude'> |
| | | <info><copyright><year>2011-2012</year><holder>ForgeRock AS</holder></copyright></info> |
| | | <refmeta> |
| | | <refentrytitle>ldif-diff</refentrytitle><manvolnum>1</manvolnum> |
| | | <refentrytitle>ldifdiff</refentrytitle><manvolnum>1</manvolnum> |
| | | <refmiscinfo class="software">OpenDJ</refmiscinfo> |
| | | <refmiscinfo class="version"><?eval ${docTargetVersion}?></refmiscinfo> |
| | | </refmeta> |
| | | <refnamediv> |
| | | <refname>ldif-diff</refname> |
| | | <refname>ldifdiff</refname> |
| | | <refpurpose>compare small LDIF files</refpurpose> |
| | | </refnamediv> |
| | | <refsynopsisdiv> |
| | | <cmdsynopsis> |
| | | <command>ldif-diff</command> |
| | | <arg choice="req">options</arg> |
| | | <command>ldifdiff</command> |
| | | <arg choice="opt">options</arg> |
| | | <arg choice="plain"><replaceable>source</replaceable>.ldif</arg> |
| | | <arg choice="plain"><replaceable>target</replaceable>.ldif</arg> |
| | | </cmdsynopsis> |
| | | </refsynopsisdiv> |
| | | <refsect1> |
| | |
| | | </listitem> |
| | | </varlistentry> |
| | | <varlistentry> |
| | | <term><option>-o, --outputLDIF {file}</option></term> |
| | | <listitem> |
| | | <para>File to which the output should be written.</para> |
| | | </listitem> |
| | | </varlistentry> |
| | | <varlistentry> |
| | | <term><option>-O, --overwriteExisting</option></term> |
| | | <listitem> |
| | | <para>Any existing output file should be overwritten rather than appending |
| | | to it.</para> |
| | | </listitem> |
| | | </varlistentry> |
| | | <varlistentry> |
| | | <term><option>-s, --sourceLDIF {file}</option></term> |
| | | <listitem> |
| | | <para>LDIF file to use as the source data.</para> |
| | | </listitem> |
| | | </varlistentry> |
| | | <varlistentry> |
| | | <term><option>-S, --singleValueChanges</option></term> |
| | | <listitem> |
| | | <para>Each attribute-level change should be written as a separate |
| | |
| | | </listitem> |
| | | </varlistentry> |
| | | <varlistentry> |
| | | <term><option>-t, --targetLDIF {file}</option></term> |
| | | <listitem> |
| | | <para>LDIF file to use as the target data.</para> |
| | | </listitem> |
| | | </varlistentry> |
| | | <varlistentry> |
| | | <term><option>-V, --version</option></term> |
| | | <listitem> |
| | | <para>Display version information.</para> |
| | |
| | | <title>Examples</title> |
| | | <para>The following example demonstrates use of the command with two |
| | | small LDIF files.</para> |
| | | <screen>$ cat /path/to/newuser.ldif |
| | | <screen>$ cat /path/to/newuser.ldif |
| | | dn: uid=newuser,ou=People,dc=example,dc=com |
| | | uid: newuser |
| | | objectClass: person |
| | |
| | | mail: newuser@example.com |
| | | userPassword: changeme |
| | | |
| | | $ cat /path/to/neweruser.ldif |
| | | $ cat /path/to/neweruser.ldif |
| | | dn: uid=newuser,ou=People,dc=example,dc=com |
| | | uid: newuser |
| | | objectClass: person |
| | |
| | | userPassword: secret12 |
| | | description: A new description. |
| | | |
| | | $ ldif-diff -s /path/to/newuser.ldif -t /path/to/neweruser.ldif |
| | | $ ldifdiff /path/to/newuser.ldif /path/to/neweruser.ldif |
| | | dn: uid=newuser,ou=People,dc=example,dc=com |
| | | changetype: modify |
| | | add: userPassword |