[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.remoting

Remoting from winform control in IE via HTTP loses windows identity and becomes NETWORK SERVICE

Mark Greene

10/25/2004 6:56:00 PM

Hi,


I am remoting from a Winform user control embedded in Internet Explorer.
This control then remotes back to the originating server to do some work.


My problem is that when the remoted object on the server checks it's
identity (System.Security.Principal.WindowsIdentity.GetCurrent()) it runs as
NETWORK SERVICE. I need to know the user that originated the call (from the
winform control in IE). The winform control in IE does know the ID of the
current user, but I am reluctant to pass this to the remoted object as a
parameter for obvious security reasons.


Does anybody know how I can tell the user id of the originating client, or
how I can do this type of remoting allowing delegation ?


Thanks,


Mark


2 Answers

Mark Greene

10/25/2004 7:37:00 PM

0

I forgot to mention,
the remote objects are hosted in IIS


"Mark Greene" <mark_greene_dropthis@hootmail.com> wrote in message
news:OSfHLRsuEHA.3872@TK2MSFTNGP11.phx.gbl...
> Hi,
>
>
> I am remoting from a Winform user control embedded in Internet Explorer.
> This control then remotes back to the originating server to do some work.
>
>
> My problem is that when the remoted object on the server checks it's
> identity (System.Security.Principal.WindowsIdentity.GetCurrent()) it runs
> as NETWORK SERVICE. I need to know the user that originated the call (from
> the winform control in IE). The winform control in IE does know the ID of
> the current user, but I am reluctant to pass this to the remoted object as
> a parameter for obvious security reasons.
>
>
> Does anybody know how I can tell the user id of the originating client, or
> how I can do this type of remoting allowing delegation ?
>
>
> Thanks,
>
>
> Mark
>
>


Ken Kolda

10/25/2004 9:19:00 PM

0

If you haven't done so already, check out these articles (it's a 2-part
series). It includes sample code you can use to help perform the delegation.

http://msdn.microsoft.com/library/en-us/dndotnet/html/r...
http://msdn.microsoft.com/library/en-us/dndotnet/html/...

Good luck -
Ken


"Mark Greene" <mark_greene_dropthis@hootmail.com> wrote in message
news:OSfHLRsuEHA.3872@TK2MSFTNGP11.phx.gbl...
> Hi,
>
>
> I am remoting from a Winform user control embedded in Internet Explorer.
> This control then remotes back to the originating server to do some work.
>
>
> My problem is that when the remoted object on the server checks it's
> identity (System.Security.Principal.WindowsIdentity.GetCurrent()) it runs
as
> NETWORK SERVICE. I need to know the user that originated the call (from
the
> winform control in IE). The winform control in IE does know the ID of the
> current user, but I am reluctant to pass this to the remoted object as a
> parameter for obvious security reasons.
>
>
> Does anybody know how I can tell the user id of the originating client, or
> how I can do this type of remoting allowing delegation ?
>
>
> Thanks,
>
>
> Mark
>
>