I'm not sure how exactly this fits in with the membership provider, but you
can definitely translate from an AD user's SID to their GUID using the
TranslateName API or the DsCrackNames API. You would call either of them
via p/invoke. You can also do an LDAP query with System.DirectoryServices.
Joe K.
"msnews.microsoft.com" <> wrote in message
news:...
> Hi gurus,
>
> I have an aspnet web service running under windows integrated security.
> When a client calls on my web service, I have access to the authenticated
> user's SID from the (this.User.Identity as WindowsIdentity).User.Value
> property.
>
> I want to use the SqlMembershipProvider to store Role/User data. The
> 'aspnet_Users" table defines the user's ID as guid so I can't use SID. How
> do I get a Guid from the SID?
>
> Thanks a lot in advance.
>
|