directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From szoer...@apache.org
Subject svn commit: r996655 - in /directory/apacheds-manuals/trunk/src/basic-user-guide: handling-of-data-3-operations.xml images/studio_mod_add_2.png images/studio_mod_mod_1.png
Date Mon, 13 Sep 2010 19:31:52 GMT
Author: szoerner
Date: Mon Sep 13 19:31:52 2010
New Revision: 996655

URL: http://svn.apache.org/viewvc?rev=996655&view=rev
Log:
Content about modification of entries

Added:
    directory/apacheds-manuals/trunk/src/basic-user-guide/images/studio_mod_add_2.png   (with
props)
    directory/apacheds-manuals/trunk/src/basic-user-guide/images/studio_mod_mod_1.png   (with
props)
Modified:
    directory/apacheds-manuals/trunk/src/basic-user-guide/handling-of-data-3-operations.xml

Modified: directory/apacheds-manuals/trunk/src/basic-user-guide/handling-of-data-3-operations.xml
URL: http://svn.apache.org/viewvc/directory/apacheds-manuals/trunk/src/basic-user-guide/handling-of-data-3-operations.xml?rev=996655&r1=996654&r2=996655&view=diff
==============================================================================
--- directory/apacheds-manuals/trunk/src/basic-user-guide/handling-of-data-3-operations.xml
(original)
+++ directory/apacheds-manuals/trunk/src/basic-user-guide/handling-of-data-3-operations.xml
Mon Sep 13 19:31:52 2010
@@ -743,12 +743,16 @@ $
        
        <para>
        Another option for verification is to use a graphical tool like Apache Directory Studio.
+         <figure id="studio_mod_add_2">
+           <title>Entry visible in Studio after addition</title>
+           <mediaobject>
+             <imageobject>
+               <imagedata fileref="images/studio_mod_add_2.png" />
+             </imageobject>
+           </mediaobject>
+         </figure>
        </para>     
  
-       
-       
-       
-     
      </section>
      
      <section>
@@ -761,7 +765,71 @@ $
        We present simple LDIF files with changes to an entry (Hook again, the samples assume
his existence within the tree) 
        and apply them to the directory.
        </para>
-     
+       
+       <para>
+       <emphasis>Example: Adding attribute values --</emphasis>
+       
+       Let's add a telephone number and a second description to the entry "cn=James Hook,ou=people,o=sevenSeas".
+       A corresponding LDIF file (captain_hook_modify_addAttrs.ldif) looks like this:
+       </para>
+       
+        <programlisting><![CDATA[
+# File captain_hook_modify_addAttrs.ldif
+dn: cn=James Hook,ou=people,o=sevenSeas
+changetype: modify
+add: description
+description: Wears an iron hook in place of his right hand
+-
+add: telephoneNumber
+telephoneNumber: 254-20
+-
+       ]]></programlisting>
+       
+       <para>
+       We apply these changes to the dircetory with the help of the ldapmodify command:
+       </para>
+       
+       <programlisting><![CDATA[
+$ldapmodify -h zanzibar -p 10389 -D "uid=admin,ou=system" -w secret -f captain_hook_modify_addAttrs.ldif
+modifying entry cn=James Hook,ou=people,o=sevenSeas
+$
+       ]]></programlisting>
+       
+       <para>
+       The arguments are the same as in the add example above, execept the missing -a switch
(because we perform modifications, not additions).
+       After successfully applying these changes, we can verify the effect with a search
operation.
+       </para>
+       
+       <programlisting><![CDATA[
+$ ldapsearch -h zanzibar -p 10389 -D "uid=admin,ou=system" -w secret -b "o=sevenSeas" -s
sub "(cn=James Hook)"
+version: 1
+dn: cn=James Hook,ou=people,o=sevenSeas
+sn: Hook
+telephonenumber: 254-20
+userpassword: peterPan
+objectclass: person
+objectclass: top
+cn: James Hook
+description: A pirate captain and Peter Pan's nemesis
+description: Wears an iron hook in place of his right hand
+$
+       ]]></programlisting>
+       
+       <para>
+       If you perform changes interactively with Apache Directory Studio, 
+       the Modification Logs view displays the corresponding LDIF lines for documentation
and replay purposes:
+       
+       <figure id="studio_mod_mod_1">
+           <title>Modification Logs view in Apache Directory Studio</title>
+           <mediaobject>
+             <imageobject>
+               <imagedata fileref="images/studio_mod_mod_1.png" />
+             </imageobject>
+           </mediaobject>
+         </figure>
+       </para>
+       
+  
      </section>
      
 

Added: directory/apacheds-manuals/trunk/src/basic-user-guide/images/studio_mod_add_2.png
URL: http://svn.apache.org/viewvc/directory/apacheds-manuals/trunk/src/basic-user-guide/images/studio_mod_add_2.png?rev=996655&view=auto
==============================================================================
Binary file - no diff available.

Propchange: directory/apacheds-manuals/trunk/src/basic-user-guide/images/studio_mod_add_2.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/apacheds-manuals/trunk/src/basic-user-guide/images/studio_mod_mod_1.png
URL: http://svn.apache.org/viewvc/directory/apacheds-manuals/trunk/src/basic-user-guide/images/studio_mod_mod_1.png?rev=996655&view=auto
==============================================================================
Binary file - no diff available.

Propchange: directory/apacheds-manuals/trunk/src/basic-user-guide/images/studio_mod_mod_1.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream



Mime
View raw message