Wednesday, July 21, 2010

Detect Active Directory User with ASP.NET

In IIS turn off anonymous authentication mode and select integrated windows security and basic. Then in your web.config file make sure you are using windows authentication. Then you should be able to access the user name by using


PHP Code:
User.Identity.Name

No comments:

Post a Comment