title: Search AD only having SID
body: <p>is there a way to search the Active Directory using UserPrincipal only having the SID?
  I have the SID in byte[] (previously queried with DirectorySearcher) and used a StringBuilder to convert it to "S-1-15-..." and "\01\05..".</p>
  
  <p>I tried to handle it this way:</p>
  
  <pre><code>PrincipalContext pContext = new PrincipalContext(ContextType.Domain);
  UserPrincipal pUser = new UserPrincipal(pContext);
  pUser.Sid = stringBuilder.ToString();
  PrincipalSearcher pSearcher = new PrincipalSearcher();
  pSearcher.QueryFilter = pUser;
  Console.WriteLine(pSearcher.FindOne().DistinguishedName.ToString());
  </code></pre>
  
  <p>Visual Studio tells me, that the Sid is write protected. Of course...</p>
  
  <p>Thanks in advance &amp; Cheers
  Alex</p>
  
  <p>p.s.: I already tried to solve it the way described here: <a href="https://stackoverflow.com/questions/499053/how-can-i-convert-from-a-sid-to-an-account-name-in-c-sharp">How can I convert from a SID to an account name in C#</a>, but no success here.</p>