I want to get currently logged in active directory user name/details.
Here, User does log in to machine with its AD username and password. How can i get this user name and other details in Global.asax file for Application_AuthenticateRequest() Event.
I have used System.Security.Principal.WindowsIdentity.GetCurrent().Name But, when it hosted on IIS 6.0 returns Server's users credentials. such as "domain\username". I have currently enabled Anonymous Access and Integrated Authentication. And in project using Form Authentication.
Should I use System.Directory.dll