Previous Topic: Example: Create an Account Container

Next Topic: Complex Attributes

Example: Create an Account within a Sub-Container

The following example creates an account on an ADS endpoint system within an existing sub-container:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addRequest xmlns="urn:oasis:names:tc:SPML:1:0" xmlns:dsml="urn:oasis:names:tc:DSML:2:0:core">
    <operationalAttributes></operationalAttributes>
    <identifier type="urn:oasis:names:tc:SPML:1:0#DN">
<id>Account=EXAMPLE_ACCOUNT,Container.ADSOrgUnit=ADSSubContainer,Container.ADSOrgUnit=ADSContainer,EndPoint=EXAMPLE_ADS_ENDPOINT,Namespace=ActiveDirectory,Domain=EXAMPLE_DOMAIN,Server=Server </id>
    </identifier>
    <attributes>
        <attr name="objectClass">
            <dsml:value>user</dsml:value>
        </attr>
        <attr name="password">
            <dsml:value>test123</dsml:value>
        </attr>
        <attr name="NT_AccountID">
            <dsml:value>egaccount</dsml:value>
        </attr>
    </attributes>
</addRequest>