Directory Services

Modifying Attributes on Directory Objects

The following code example replaces the existing description attribute of the DSMLSamples object in the LDAP directory.

<se:Envelope xmlns:se="">
  <se:Body xmlns="urn:oasis:names:tc:DSML:2:0:core">
	<modifyRequest dn="ou=DSMLSamples,dc=fabrikam,dc=com">
		<modification name="description" operation="replace">
		<value>Directory Services Markup Language Sample Organizational Unit</value>

The <se:Envelope> and <se:Body> SOAP elements enclose the DSML payload. The first element of the DSML payload, <batchRequest>, is the mandatory top-level element for all DSML V2 requests. The <modifyRequest> element modifies the description property of the DSMLSamples object to have the value Directory Services Markup Language Sample Organizational Unit.

For more information, see Transmitting and Receiving SOAP-DSML Messages.