Re: WindowsIdentity.GetCurrent().Token cannot be used when remoting?



framework version??


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



.



Relevant Pages

  • Re: simple communication btw 2 apps - use events?
    ... > The research on how to accomplish this brought me to .NET Remoting, ... Actually, client is the app, which makes a request, and server is this, ...
    (microsoft.public.dotnet.framework.remoting)
  • Remoting Questions
    ... I have some more questions with regards to Remoting in .NET 2. ... Class Library containing the server classes which Inherits ... When the app starts, the following code executes: ... I have is that as soon as I copy the client exe with the CommonLib.dll over ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: Remoting or windows service
    ... Thanks for writing up such a decent overview of the remoting dev process ... the client and the server. ... > 2) Implement this class in the server app and say that it can be accessed ...
    (microsoft.public.dotnet.framework.remoting)
  • WindowsIdentity.GetCurrent().Token cannot be used when remoting?
    ... I want to be able to retrieve user information on the server of my remoting ... System.Security.WindowsIdentity.GetCurrent.Token and sent it to the server ... it tells me the Token is invalid even if the server app is on ...
    (microsoft.public.dotnet.security)
  • Re: WindowsIdentity.GetCurrent().Token cannot be used when remoting?
    ... I want to be able to retrieve user information on the server of my ... (via remoting). ... it tells me the Token is invalid even if the server app ...
    (microsoft.public.dotnet.security)