<!--
 * $Novell: dsml.xml,v 1.2 2003/01/10 18:59:56 $
 *
 * Copyright (C) 2003 Novell, Inc. All Rights Reserved.
 *
 * THIS WORK IS SUBJECT TO U.S. AND INTERNATIONAL COPYRIGHT LAWS AND
 * TREATIES. USE AND REDISTRIBUTION OF THIS WORK IS SUBJECT TO THE LICENSE
 * AGREEMENT ACCOMPANYING THE SOFTWARE DEVELOPMENT KIT (SDK) THAT CONTAINS
 * THIS WORK. PURSUANT TO THE SDK LICENSE AGREEMENT, NOVELL HEREBY GRANTS TO
 * DEVELOPER A ROYALTY-FREE, NON-EXCLUSIVE LICENSE TO INCLUDE NOVELL'S SAMPLE
 * CODE IN ITS PRODUCT. NOVELL GRANTS DEVELOPER WORLDWIDE DISTRIBUTION RIGHTS
 * TO MARKET, DISTRIBUTE, OR SELL NOVELL'S SAMPLE CODE AS A COMPONENT OF
 * DEVELOPER'S PRODUCTS. NOVELL SHALL HAVE NO OBLIGATIONS TO DEVELOPER OR
 * DEVELOPER'S CUSTOMERS WITH RESPECT TO THIS CODE.
-->

<batchRequest xmlns="urn:oasis:names:tc:DSML:2:0:core" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >

    <extendedRequest>  <!-- Refresh server -->
        <requestName>2.16.840.1.113719.1.27.100.9</requestName>
    </extendedRequest>

    <addRequest dn="ou=test,o=novell">
        <attr name="objectclass">
            <value>organizationalunit</value>
        </attr>
        <attr name="ou">
            <value>test</value>
        </attr>
    </addRequest>

    <delRequest dn="cn=bob,ou=test,o=novell"/>
    <delRequest dn="cn=robert,ou=test,o=novell"></delRequest>

    <addRequest dn="cn=bob,ou=test,o=novell">
        <attr name="objectclass"> <value>inetorgperson</value> </attr>
        <attr name="cn"> <value>bob</value> </attr>
        <attr name="uid"><value>bob</value> </attr>
        <attr name="sn"> <value>ralph</value> </attr>
        <attr name="sn"> <value>chuck</value> </attr>
    </addRequest>

    <compareRequest dn="cn=bob,ou=test,o=novell">
        <assertion name="uid">
            <value>bob</value>
        </assertion>
    </compareRequest>

    <modifyRequest dn="cn=bob,ou=test,o=novell">
        <modification name="sn" operation="replace">
            <value>chuck</value>
            <value>Ralph II</value>
        </modification>
        <modification name="telephoneNumber" operation="add">
            <value>1-800-WeR-eDir</value>
            <value>1-800-937-3347</value>
        </modification>
    </modifyRequest>
    <modDNRequest   dn="cn=bob,ou=test,o=novell"
                    newrdn="cn=robert"
                    deleteoldrdn="false" />

    <searchRequest
        dn="ou=test,o=novell"
        scope="singleLevel"
        derefAliases="neverDerefAliases"
        sizeLimit="1000">
        <attributes>
            <attribute name="cn"/>
            <attribute name="sn"/>
            <attribute name="telephoneNumber"/>
        </attributes>
    </searchRequest>

    <delRequest dn="cn=robert,ou=test,o=novell"></delRequest>
</batchRequest>