3.1.4.1.1.1 adlq:LdapQuery

This section specify the format of optional LDAP query element which is used to define the optional /soapenv:Envelope/soapenv:Body/wsen:Enumerate/wsen:Filter element of the Enumerate request described in WS-Enumeration [WSENUM] section 3.1.

Following is the XML Schema [XMLSCHEMA1] definition of the LdapQuery element.

 <xsd:element name = "LdapQuery">
   <xsd:complexType>
     <xsd:sequence>
       <xsd:element name="Filter" type="xsd:string" minOccurs="1"
                maxOccurs ="1"  />
       <xsd:element name="BaseObject" type="xsd:string"
                minOccurs="1"  maxOccurs="1"   />
       <xsd:element name="Scope" type="xsd:string" minOccurs="1" 
                maxOccurs="1"   />
     </xsd:sequence>
   </xsd:complexType>
 </xsd:element>
  

For example, the following XML shows the contents of LdapQuery element.

  
 <adlq:LdapQuery>
   <adlq:Filter> 
     <RFC 2254 filter string>
   </adlq:Filter>
     <adlq:BaseObject> 
   <object Reference Property, a.k.a. GUID, or object DN> 
     </adlq:BaseObject>
   <adlq:Scope>
      (base | onelevel | subtree) 
   < /adlq:Scope>
 </adlq:LdapQuery>
  

If the adlq:LdapQuery element is absent in the request (that is, no query filter has been provided in the request), the server SHOULD use the following Ldap query filter by default:

 <wsen:Filter Dialect="http://schemas.microsoft.com/2008/1/ActiveDirectory/Dialect/LdapQuery">
   <adlq:LdapQuery>
     <adlq:Filter> 
       (objectClass=*)
     </adlq:Filter>
     <adlq:BaseObject> 
       <Default domain NC DN> 
     </adlq:BaseObject>
     <adlq:Scope> 
       subtree
     </adlq:Scope>
   </adlq:LdapQuery>
 </wsen:Filter>