How do I generate a custom SID?

Posted by Max Schmeling on Stack Overflow See other posts from Stack Overflow or by Max Schmeling
Published on 2010-03-05T18:09:32Z Indexed on 2010/12/23 13:54 UTC
Read the original article Hit count: 221

Filed under:

I need to generate custom SIDs for users in my web application for use with Microsoft AzMan. What is the best way to do this? What do I need to know before doing this?

This is what I'm thinking, but I'm not sure if I'm missing something:

S-1-9-1234-{user_id + 1000}

S-{first revision}-{resource manager authority}-{domain (unique number for the specific app)}-{unique id for user}

UPDATE: Changed to resource manager authority because of David Crawford's blog entry: http://blogs.msdn.com/dc995/archive/2006/08/23/715021.aspx

© Stack Overflow or respective owner

Related posts about .net-3.5