WindowsIdentity.GetCurrent().Token cannot be used when remoting?
- From: "ThunderMusic" <NoSpAmdanlatathotmaildotcom@xxxxxxxxxx>
- Date: Tue, 11 Jul 2006 17:03:03 -0400
Hi,
I want to be able to retrieve user information on the server of my remoting
app... What I did is the following : I called
System.Security.WindowsIdentity.GetCurrent().Token and sent it to the server
(via remoting). When I try to recreate the WindowsIdentity using the Token
server-side, it tells me the Token is invalid even if the server app is on
the same computer (same windows, same all) than the client app.
Is there a way I can do what I need to do? I mean, be able to retrieve the
user infos (groups) using something I can send through network? (ideally
encrypted)
I've also seen in the same object, the property .User (that contains the
User SID on the NT Network). Is there something to do with this value so I
can retrieve the user it belongs to and get the groups (or roles) it's in?
thanks
ThunderMusic
.
- Follow-Ups:
- Re: WindowsIdentity.GetCurrent().Token cannot be used when remoting?
- From: Dominick Baier
- Re: WindowsIdentity.GetCurrent().Token cannot be used when remoting?
- From: Dominick Baier
- Re: WindowsIdentity.GetCurrent().Token cannot be used when remoting?
- Prev by Date: RSA Encryption: Saving keys as files, and size of encrypted data
- Next by Date: Re: Programmatically Install Certificate into Windows Certificate Store
- Previous by thread: RSA Encryption: Saving keys as files, and size of encrypted data
- Next by thread: Re: WindowsIdentity.GetCurrent().Token cannot be used when remoting?
- Index(es):
Relevant Pages
|