Re: How to get the WindowsIdentity of the caller of my excutable?
From: Cindy Liu (CindyLiu_at_discussions.microsoft.com)
Date: 06/22/04
- Next message: Matt Budd: "Yet another Network App question (slightly different though);"
- Previous message: Michael Bird: "Re: Registry Permission For Web Service"
- In reply to: Alek Davis: "Re: How to get the WindowsIdentity of the caller of my excutable?"
- Next in thread: Alek Davis: "Re: How to get the WindowsIdentity of the caller of my excutable?"
- Reply: Alek Davis: "Re: How to get the WindowsIdentity of the caller of my excutable?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 22 Jun 2004 09:49:01 -0700
Yes, my Windows service hosts a .Net remoting object, and I have a COM+ dll talking to it from different computer, and a web server on the same box calling COM+ methods. Now I want to pass WondowsIdentity token from COM+ dll to my Windows service. Can COM+ dll determine who is the caller, or my web server has to get the token and pass to COM+ dll?
"Alek Davis" wrote:
> 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: Matt Budd: "Yet another Network App question (slightly different though);"
- Previous message: Michael Bird: "Re: Registry Permission For Web Service"
- In reply to: Alek Davis: "Re: How to get the WindowsIdentity of the caller of my excutable?"
- Next in thread: Alek Davis: "Re: How to get the WindowsIdentity of the caller of my excutable?"
- Reply: Alek Davis: "Re: How to get the WindowsIdentity of the caller of my excutable?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|