I’m building Active Directory Authentication into my application and I am planning to link my application’s internal accounts to a user’s domain SID. It is easier for me to work with the string format of the sid than a byte array so I was planning to store it in the database as a string. How long should I make the field to ensure SID’s will not get truncated?
I’m building Active Directory Authentication into my application and I am planning to link
Share
I had the same question, and I believe the right answer is:
I haven’t checked the math myself, but the technique used here looks valid:
https://groups.google.com/d/msg/microsoft.public.dotnet.security/NpIi7c2Toi8/31SVhcepY58J
Refer to the program written by Russell Mangel on Aug 19, 2006, also copied here for reference: