Jesse Liberty [mailto:[EMAIL PROTECTED]] wrote:

> Right, that is my understanding, but not what I'm seeing on
> the page. I'm using Windows authentication, (and <identity
> impersonate="true"/>) yet the user.identity is correct (has
> the expected user name) but the wp version shows
> NT\AUTHORITY\SYSTEM.  Any ideas?

Hmmm... that's strange. Ahh... maybe in WindowsIdentity::GetCurrent they're
pulling the process identity rather than thread identity. I bet that the
Thread::CurrentPriciapl IPrincipal is equivalent to that of
HttpContext::User though (might even be same instance). Unfortunately the
WindowsIdentity::GetCurrent ultimately uses internal call methods to get the
security token, so I can't verify exactly what they're doing, but I think
it's a reasonable explanation.

HTH,
Drew
.NET MVP

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to