Capture the identity of the windows user accesing a web page
Posted on 2010-04-05
I have a web application which is running in IIS 6.0, under a dedicated AppPool, which has an identity XYZ.
I need to capture the windows user information of the user accesing the web page.
I have anonymous access under Directory security unchecked.
I have Integrated Windows authentication checked.
I have the following code to capture the user information
lblUser.Text = User.Identity.Name;
But it returns the identity of the AppPool , which is XYZ.
How do I capture the identity of the windows user accessing the web page
In my web.config