User.Identity.Name is for the login in user. WindoewsIdentity.GetCurrent is for the user of current running thread.
If you set up impersonate as true, these two user should be the same. Chong -----Original Message----- From: Jesse Liberty [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 28, 2002 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 try this (with anonymous user off) I get the correct user name from the former, and NT\AUTHORITY\SYSTEM with the latter. Thanks. -j ------------------------------- Jesse Liberty, President Liberty Associates, Inc. .NET Programming and Training http://www.LibertyAssociates.com 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 from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.
