Search code examples
c#active-directoryldapsid

Converting SID in HES to SDDL format


I am doing an LDAP query to get the distinguished name of a User. The DN section contains the Guid and SID but the SID section is HEX.

How can I convert this SID in HES format to SDDL format?


Solution

  • You just can use SecurityIdentifier class.