title: Keep getting exceptions using PrincipalContext from the System.DirectoryServices.AccountManagement assembly
body: <p>Using System.DirectoryServices.AccountManagement assembly.</p>
  
  <p>I am using the constructor</p>
  
  <pre><code> PrincipalContext context = new PrincipalContext(
                  ContextType.Domain,
                  "myserver.ds.com", 
                  "LDAP://OU=the-users,DC=myserver,DC=ds,DC=com", 
                  adusername, 
                  password);
  </code></pre>
  
  <p>I can call <code>context.ValidateCredentials(adusername, password, ContextOptions.ServerBinding)</code> and it returns true.</p>
  
  <p>As soon as I call 
  UserPrincipal.FindByIdentity(context, IdentityType.SamAccountName, username);</p>
  
  <p>I get various PrincipalOperationException. Sometimes is a "server sent a referrer". Other times it is Unknown error (0x80005000)</p>
  
  <p>I'm using these overloads because the server in question in not in the same domain
  that the user running the program is in.</p>
  
  <p>Anyhow, how to fix this and possibly some enlightenment to the procedure arguments would be most appreciated.</p>
  
  <p>Thanks in Advance.</p>