title: Convert SID to Username in C#
body: <p>In .net, I can create a <code>NTAccount</code> using domain and username, and get it's SID.</p>
  
  <p>But I cannot convert the SID back to NTAccount using translate function.</p>
  
  <pre><code>new SecurityIdentifier(stringSid).Translate(typeof(NTAccount)).ToString();
  </code></pre>
  
  <p>And this two way conversion code has no problem running on Domain Controller.</p>
  
  <p>Maybe some configuration wrong?</p>