Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > SqlMembershipProvider - SID or GUID

Reply
Thread Tools

SqlMembershipProvider - SID or GUID

 
 
msnews.microsoft.com
Guest
Posts: n/a
 
      12-20-2005
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.


 
Reply With Quote
 
 
 
 
Joe Kaplan \(MVP - ADSI\)
Guest
Posts: n/a
 
      12-21-2005
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.
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SqlMembershipProvider question anon2005@comcast.net ASP .Net 3 03-05-2006 09:20 PM
allow username update/change with SqlMembershipProvider ibiza ASP .Net 0 01-24-2006 04:10 PM
Can convert group SID to name Isky ASP .Net 0 12-01-2005 01:14 PM
Access denied attempting to launch a DCOM Server. The server is: {000C101C-0000-0000-C000-000000000046} The user is ASPNET/ServerName, SID=S-1-5-21-1606980848-602162358-1801674531-1007. c.verma@gmail.com ASP .Net 0 05-26-2005 08:44 PM
OT: for Sid picayunish HTML 2 12-13-2003 10:58 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57