| | |
| | | ! |
| | | ! CCPL HEADER END |
| | | ! |
| | | ! Copyright 2011-2012 ForgeRock AS |
| | | ! Copyright 2011-2014 ForgeRock AS |
| | | ! |
| | | --> |
| | | <refentry xml:id='ldifmodify-1' |
| | | xmlns='http://docbook.org/ns/docbook' |
| | | version='5.0' xml:lang='en' |
| | | xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' |
| | | xsi:schemaLocation='http://docbook.org/ns/docbook http://docbook.org/xml/5.0/xsd/docbook.xsd' |
| | | xmlns:xlink='http://www.w3.org/1999/xlink' |
| | | xmlns:xinclude='http://www.w3.org/2001/XInclude'> |
| | | <info><copyright><year>2011-2012</year><holder>ForgeRock AS</holder></copyright></info> |
| | | xsi:schemaLocation='http://docbook.org/ns/docbook |
| | | http://docbook.org/xml/5.0/xsd/docbook.xsd'> |
| | | <info><copyright><year>2011-2014</year><holder>ForgeRock AS</holder></copyright></info> |
| | | <refmeta> |
| | | <refentrytitle>ldifmodify</refentrytitle><manvolnum>1</manvolnum> |
| | | <refmiscinfo class="software">OpenDJ</refmiscinfo> |
| | |
| | | <refsect1> |
| | | <title>Examples</title> |
| | | <para>The following example demonstrates use of the command.</para> |
| | | <screen>$ cat /path/to/newuser.ldif |
| | | dn: uid=newuser,ou=People,dc=example,dc=com |
| | | |
| | | <screen> |
| | | $ <userinput>cat /path/to/newuser.ldif</userinput> |
| | | <computeroutput>dn: uid=newuser,ou=People,dc=example,dc=com |
| | | uid: newuser |
| | | objectClass: person |
| | | objectClass: organizationalPerson |
| | |
| | | sn: User |
| | | ou: People |
| | | mail: newuser@example.com |
| | | userPassword: changeme |
| | | userPassword: changeme</computeroutput> |
| | | |
| | | $ cat /path/to/newdiff.ldif |
| | | dn: uid=newuser,ou=People,dc=example,dc=com |
| | | $ <userinput>cat /path/to/newdiff.ldif</userinput> |
| | | <computeroutput>dn: uid=newuser,ou=People,dc=example,dc=com |
| | | changetype: modify |
| | | add: userPassword |
| | | userPassword: secret12 |
| | |
| | | userPassword: changeme |
| | | - |
| | | add: description |
| | | description: A new description. |
| | | description: A new description.</computeroutput> |
| | | |
| | | $ ldifmodify -s /path/to/newuser.ldif -m /path/to/newdiff.ldif -t neweruser.ldif |
| | | $ cat neweruser.ldif |
| | | dn: uid=newuser,ou=People,dc=example,dc=com |
| | | $ <userinput>ldifmodify -s /path/to/newuser.ldif -m /path/to/newdiff.ldif -t neweruser.ldif</userinput> |
| | | |
| | | $ <userinput>cat neweruser.ldif</userinput> |
| | | <computeroutput>dn: uid=newuser,ou=People,dc=example,dc=com |
| | | objectClass: person |
| | | objectClass: inetOrgPerson |
| | | objectClass: organizationalPerson |
| | |
| | | sn: User |
| | | userPassword: secret12 |
| | | mail: newuser@example.com |
| | | ou: People |
| | | ou: People</computeroutput> |
| | | |
| | | </screen> |
| | | </screen> |
| | | </refsect1> |
| | | </refentry> |