Create User operation for ADAM
The Create User operation creates a new user.
The following table describes the elements for the <items> XML element and adapter request for the Create User operation:
Elements for the <items> XML element and adapter request for the Create User operation
The following figure shows a sample adapter request for the Create User operation:
Adapter request for the Create User operation
<active-directory-request>
<target>
<host>vm-w23-rds19</host>
<user-name>administrator</user-name>
<password>bmcAdm1n</password>
</target>
<commands>
<command>
<active-directory-command>ADAM Create</active-directory-command>
<object-class>User</object-class>
<object-distinguished-name>cn=r.nayar,CN=Users,DC=vm-w23-rds19,
DC=local</object-distinguished-name>
<parameters>
<server>vm-w23-rds19</server>
<port-number>50002</port-number>
<domain>vm-w23-rds19.local</domain>
<user-name>administrator</user-name>
<password>bmcAdm1n</password>
<property name="userPrincipalName">JSmith</property>
<property name="mail">john_smith@mycorp.com</property>
<property name="displayName">Smith, John</property>
<property name="telephoneNumber">456.555.3452</property>
</parameters>
</command>
</commands>
</active-directory-request>
<target>
<host>vm-w23-rds19</host>
<user-name>administrator</user-name>
<password>bmcAdm1n</password>
</target>
<commands>
<command>
<active-directory-command>ADAM Create</active-directory-command>
<object-class>User</object-class>
<object-distinguished-name>cn=r.nayar,CN=Users,DC=vm-w23-rds19,
DC=local</object-distinguished-name>
<parameters>
<server>vm-w23-rds19</server>
<port-number>50002</port-number>
<domain>vm-w23-rds19.local</domain>
<user-name>administrator</user-name>
<password>bmcAdm1n</password>
<property name="userPrincipalName">JSmith</property>
<property name="mail">john_smith@mycorp.com</property>
<property name="displayName">Smith, John</property>
<property name="telephoneNumber">456.555.3452</property>
</parameters>
</command>
</commands>
</active-directory-request>
The following figure shows a sample adapter response for the Create User operation:
Sample adapter response for the Create User operation
<active-directory-response>
<metadata>
<status>success</status>
</metadata>
<target-output host="vm-w23-rds19">
<metadata>
<os-id>Windows 2003</os-id>
<os-version>5.2 Build 3790 Service Pack 2</os-version>
<status>success</status>
</metadata>
<commands-output>
<command-output>
<metadata>
<command>ldifde -i -f "ADAM_Data_File_1219761386009.ldf" -s
"vm-w23-rds19" -t "50002" -b administrator
vm-w23-rds19.local bmcAdm1n</command>
<line-count>11</line-count>
<execution-milliseconds>1891</execution-milliseconds>
<exit-code>0</exit-code>
<status>success</status>
</metadata>
<output>
<line index="1">Attempting to connect to remote host...</line>
<line index="2">Initialising rctrlx server component...</line>
<line index="3">Executing remote application: cmd /c ldifde
-i -f "ADAM_Data_File_1219761386009.ldf" -s "vm-w23-rds19" -t "50002"
-b administrator vm-w23-rds19.local bmcAdm1n</line>
<line index="4">Remote application process ID: 15444</line>
<line index="5">Connecting to "vm-w23-rds19"</line>
<line index="6">Logging in as "administrator" in domain
"vm-w23-rds19.local" using SSPI</line>
<line index="7">Importing directory from file
"ADAM_Data_File_1219761386009.ldf"</line>
<line index="8">Loading entries1 entry modified successfully.</line>
<line index="9">The command has completed successfully</line>
<line index="10">..</line>
<line index="11">Remote application exited with code: 0</line>
</output>
</command-output>
</commands-output>
</target-output>
</active-directory-response>
<metadata>
<status>success</status>
</metadata>
<target-output host="vm-w23-rds19">
<metadata>
<os-id>Windows 2003</os-id>
<os-version>5.2 Build 3790 Service Pack 2</os-version>
<status>success</status>
</metadata>
<commands-output>
<command-output>
<metadata>
<command>ldifde -i -f "ADAM_Data_File_1219761386009.ldf" -s
"vm-w23-rds19" -t "50002" -b administrator
vm-w23-rds19.local bmcAdm1n</command>
<line-count>11</line-count>
<execution-milliseconds>1891</execution-milliseconds>
<exit-code>0</exit-code>
<status>success</status>
</metadata>
<output>
<line index="1">Attempting to connect to remote host...</line>
<line index="2">Initialising rctrlx server component...</line>
<line index="3">Executing remote application: cmd /c ldifde
-i -f "ADAM_Data_File_1219761386009.ldf" -s "vm-w23-rds19" -t "50002"
-b administrator vm-w23-rds19.local bmcAdm1n</line>
<line index="4">Remote application process ID: 15444</line>
<line index="5">Connecting to "vm-w23-rds19"</line>
<line index="6">Logging in as "administrator" in domain
"vm-w23-rds19.local" using SSPI</line>
<line index="7">Importing directory from file
"ADAM_Data_File_1219761386009.ldf"</line>
<line index="8">Loading entries1 entry modified successfully.</line>
<line index="9">The command has completed successfully</line>
<line index="10">..</line>
<line index="11">Remote application exited with code: 0</line>
</output>
</command-output>
</commands-output>
</target-output>
</active-directory-response>
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*