Re: How to get the WindowsIdentity of the caller of my excutable?
From: Alek Davis (alek_xDOTx_davis_xATx_intel_xDOTx_com)
Date: 06/22/04
- Next message: Sean Dowling: "Forward Credentials from ASP.NET Web-application to ASP.NET Web-Service?"
- Previous message: Cindy Liu: "How to get the WindowsIdentity of the caller of my excutable?"
- In reply to: Cindy Liu: "How to get the WindowsIdentity of the caller of my excutable?"
- Next in thread: Cindy Liu: "Re: How to get the WindowsIdentity of the caller of my excutable?"
- Reply: Cindy Liu: "Re: How to get the WindowsIdentity of the caller of my excutable?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Mon, 21 Jun 2004 15:48:29 -0700
Cindy,
I assume that your Windows service encapsulates a .NET remoting object;
otherwise, your question does not make much sense: a regular Windows service
just runs on its own with the identity defined in the Service Control
Manager (which is trivial to obtain). If my assumption is correct, you are
out of luck, because CLR does not support any security aspects in .NET
remoting objects running inside of Windows services. You options would be
to: (a) host your .NET remoting object in an ASP.NET application instead of
Windows service; (b) use SSPI (I cannot comment on this, but there are some
references on the Web); or (c) use a commercial product like GenuineChannels
(see http://www.genuinechannels.com/).
Alek
"Cindy Liu" <CindyLiu@discussions.microsoft.com> wrote in message
news:EE740459-E1C4-4AAE-8E5E-A6DB5C72FE27@microsoft.com...
> Hi Everyone,
>
> I created my Windows service. I want to get the WindowsIdentity of the
caller that calls my method in my Windows service. How do I do that?
>
> Thanks in advance!!!
> Cindy
- Next message: Sean Dowling: "Forward Credentials from ASP.NET Web-application to ASP.NET Web-Service?"
- Previous message: Cindy Liu: "How to get the WindowsIdentity of the caller of my excutable?"
- In reply to: Cindy Liu: "How to get the WindowsIdentity of the caller of my excutable?"
- Next in thread: Cindy Liu: "Re: How to get the WindowsIdentity of the caller of my excutable?"
- Reply: Cindy Liu: "Re: How to get the WindowsIdentity of the caller of my excutable?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|