4.3 WS-Transfer LDAP v3 Controls Extensions Get Example
In this example, the directory object deleted previously is retrieved using a [WXFR] Get operation. During the extraction, the LDAP show deleted control (LDAP_SERVER_SHOW_DELETED_OID) ([MS-ADTS] section 3.1.1.3.4.1.14) is added to the request, which specifies that the search results performed by the Get operation for extraction covers any deleted objects. The response to this operation could be seen in the response message.
SOAP Request Message
-
<soapenv:Envelope xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:ad="http://schemas.microsoft.com/2008/1/ActiveDirectory"> <soapenv:Header> <wsa:Action soapenv:mustUnderstand="1"> http://schemas.xmlsoap.org/ws/2004/09/transfer/Get</wsa:Action> <ad:objectReferenceProperty> 51419d0c-cadd-4b70-9c8d-8a73fdd2d32a </ad:objectReferenceProperty> <ad:instance>ldap:389</ad:instance> <wsa:MessageID> urn:uuid:928f9abe-875d-4bc1-bb5f-d1be16c035c3 </wsa:MessageID> <wsa:ReplyTo> <wsa:Address>http://www.w3.org/2005/08/addressing/ anonymous</wsa:Address> </wsa:ReplyTo> <wsa:To soapenv:mustUnderstand="1"> net.tcp://server01.fabrikam.com:9389/ ActiveDirectoryWebServices/Windows/Resource </wsa:To> </soapenv:Header> <soapenv:Body> <ad:controls> <ad:control type="1.2.840.113556.1.4.417" criticality="false" /> </ad:controls> </soapenv:Body> </soapenv:Envelope>
SOAP Response Message
-
<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:ad="http://schemas.microsoft.com/2008/1/ActiveDirectory" xmlns:addata="http://schemas.microsoft.com/2008/1/ ActiveDirectory/Data" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soapenv:Header> <wsa:Action soapenv:mustUnderstand="1"> http://schemas.xmlsoap.org/ws/2004/09/transfer/GetResponse </wsa:Action> <wsa:RelatesTo>urn:uuid:928f9abe-875d-4bc1-bb5f-d1be16c035c3 </wsa:RelatesTo> <wsa:To soapenv:mustUnderstand="1">http://www.w3.org/2005/08/ addressing/anonymous</wsa:To> </soapenv:Header> <soapenv:Body> <addata:organizationalUnit> <ad:objectReferenceProperty> 51419d0c-cadd-4b70-9c8d-8a73fdd2d32a </ad:objectReferenceProperty> <addata:objectClass LdapSyntax="ObjectIdentifier"> <ad:value xsi:type="xsd:string">top</ad:value> <ad:value xsi:type="xsd:string">organizationalUnit </ad:value> </addata:objectClass> <addata:uSNCreated LdapSyntax="LargeInteger"> <ad:value xsi:type="xsd:string">29823</ad:value> </addata:uSNCreated> <addata:name LdapSyntax="UnicodeString"> <ad:value xsi:type="xsd:string">GetADOU</ad:value> </addata:name> <addata:objectGUID LdapSyntax="OctetString"> <ad:value xsi:type="xsd:base64Binary"> 90xlHcX0nUyOp2io+Q397Q==</ad:value> </addata:objectGUID> <addata:whenCreated LdapSyntax="GeneralizedTimeString"> <ad:value xsi:type="xsd:string">20080811233505.0Z </ad:value> </addata:whenCreated> <addata:whenChanged LdapSyntax="GeneralizedTimeString"> <ad:value xsi:type="xsd:string">20080811233505.0Z </ad:value> </addata:whenChanged> <addata:dSCorePropagationData LdapSyntax="GeneralizedTimeString"> <ad:value xsi:type="xsd:string">16010101000000.0Z </ad:value> </addata:dSCorePropagationData> ……. ……. ……. ……. ……. ……. ……. ……. ……. </addata:organizationalUnit> </soapenv:Body> </soapenv:Envelope>