Re: Using HttpContext from a web server?
From: Nicole Calinoiu (calinoiu)
Date: 04/13/05
- Next message: Jeff Connelly: "Re: Using HttpContext from a web server?"
- Previous message: Jeff Connelly: "Re: How do I filter an Active Directory search to an OU (organizational unit)?"
- In reply to: Jeff Connelly: "Re: Using HttpContext from a web server?"
- Next in thread: Jeff Connelly: "Re: Using HttpContext from a web server?"
- Reply: Jeff Connelly: "Re: Using HttpContext from a web server?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 13 Apr 2005 15:58:03 -0400
Weird... Is it remotely possible that the client application is actually
running in the context of the ASPNET account? If not, is your web service
application using any custom HTTP handlers or modules (as specified in
machine.config or its web.config)?
"Jeff Connelly" <nomail@thank.you> wrote in message
news:O8zh2OFQFHA.248@TK2MSFTNGP15.phx.gbl...
>
> "Nicole Calinoiu" <calinoiu REMOVETHIS AT gmail DOT com> wrote in message
> news:uaPKGwEQFHA.508@TK2MSFTNGP12.phx.gbl...
>> "Jeff Connelly" <nomail@thank.you> wrote in message
>> news:u0dM8IEQFHA.4024@TK2MSFTNGP10.phx.gbl...
>>> This doesn't work like I'd expect. Looking at this page
>>> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/SecNetAP05.asp
>>>
>>> Table 4 IIS Integrated Windows, impersonate false, authentication mode
>>> Windows. It seems to be saying that HttpContext.Current.User.Identity
>>> should give the identity of the user that's been authenticated.
>>> However, it's always MACHINE\APSNET, just like WindowsIdentity.
>>>
>>> For the web service side, I have anonymous access off, and Integrated
>>> Windows Auth on.
>>
>> In IIS, or just in your web.config file? If IIS is set to allow only
>> Windows integrated authentication for the web service file, you really
>> should be seeing the client user identified via the HttpContext user. If
>> this still doesn't work, rebooting the machine might help. If if
>> doesn't, could you please indicate what versions of Windows and the .NET
>> Framework you are using?
>
> In web.config, I have <authentication mode="Windows"/>. In IIS, I have
> Anonymous access off and Integrated Windows authorization on. Rebooting
> did not seem to help. I'm using Visual C# .NET 1.1, and Windows XP Pro
> version 2002 SP2.
>
- Next message: Jeff Connelly: "Re: Using HttpContext from a web server?"
- Previous message: Jeff Connelly: "Re: How do I filter an Active Directory search to an OU (organizational unit)?"
- In reply to: Jeff Connelly: "Re: Using HttpContext from a web server?"
- Next in thread: Jeff Connelly: "Re: Using HttpContext from a web server?"
- Reply: Jeff Connelly: "Re: Using HttpContext from a web server?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|