title: application executor vs lpszUserName of ADsOpenObject
body: <p>I would like to understand application executor and lpszUserName of ADsOpenObject.</p>
  
  <p>I can't understand why my program ignores lpszUserName's domain, while connect to application executor's domain.</p>
  
  <p>Here is my code.</p>
  
  <pre class="lang-cpp prettyprint-override"><code>CComPtr&lt;IADs&gt; iad;
  ADsOpenObject("LDAP://RootDSE", "test2.com\tester", "pw", ADS_SECURE_AUTHENTICATION, IID_IADs, (void **)&amp;iad);
  
  VARIANT dc;
  VariantInit(&amp;dc);
  iad-&gt;Get(CComBSTR("defaultNamingContext"), &amp;dc);
  </code></pre>
  
  <p>And this is a scenario.</p>
  
  <p>Application executor(test1.com\tester) executes the program that calls ADsOpenObject hard coded "test2.com\tester" at application server(test3.com\testServer).</p>
  
  <ul>
  <li>application executor : test1.com\tester</li>
  <li>lpszUserName : test2.com\tester</li>
  <li>application server : test3.com\testServer</li>
  <li>All domains trust each other.</li>
  </ul>
  
  <p>please help me.</p>