I would like to convert the SID\'s System.Byte[] type to a String.
My code:
string path = \"LDAP://DC=abc,DC=contoso,DC=com\"; DirectoryEntry entry = new
Take a look at the SecurityIdentifier class. You can then do simple things like,
var sidInBytes = (byte[]) *somestuff* var sid = new SecurityIdentifier(sidInBytes, 0); // This gives you what you want sid.ToString();