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 impersonate="true"/>) yet the user.identity is correct (has
> the expected user name) but the wp version shows
> NT\AUTHORITY\SYSTEM.
e: [DOTNET] Windows Identity.GetCurrent vs. User.Identity
Assuming you're using Windows authentication, there is no difference.
You can read messages from the DOTNET archive, unsubscribe from DOTNET,
or
subscribe to other DevelopMentor lists at http://discuss.develop.com.
You can read messages
T] Windows Identity.GetCurrent vs. User.Identity
Assuming you're using Windows authentication, there is no difference.
You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.
1:54 PM
To: [EMAIL PROTECTED]
Subject: [DOTNET] Windows Identity.GetCurrent vs. User.Identity
In an ASP.NET application, what is the difference between
User.Identity.Name
and
WindowsPrincipal wp = new
WindowsPrincipal(WindowsIdentity.GetCurrent())
wp.Identity.Name
When
I wrote:
> Assuming you're using Windows authentication, there is no
> difference.
This is a little misleading. It also assumes you've configured your web
application with:
Later,
Drew
You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor
Jesse Liberty [mailto:[EMAIL PROTECTED]] wrote:
> In an ASP.NET application, what is the difference between
>
> User.Identity.Name
>
> and
>
> WindowsPrincipal wp = new
> WindowsPrincipal(WindowsIdentity.GetCurrent())
> wp.Identity.Name
>
> When I try this (with anonymous
In an ASP.NET application, what is the difference between
User.Identity.Name
and
WindowsPrincipal wp = new
WindowsPrincipal(WindowsIdentity.GetCurrent())
wp.Identity.Name
When I try this (with anonymous user off) I get the correct user name from
the former, and NT\AUTHO