I want to develop an ASP.NET application that can detect the user logged on a Window Domain. These credentials are going to be used to logging on the ASP.NET application.
How can I do this?
Thanks!
I want to develop an ASP.NET application that can detect the user logged on a Window Domain. These credentials are going to be used to logging on the ASP.NET application.
How can I do this?
Thanks!
You should look into the active directory membership provider. It's built into ASP.NET.
Here is C# code I use to authenticate against the Active Directory
For ASP.net, you can probably use
If IIS is configured correctly (no anonymous logons, at least)
In IIS, turn on Integrated Windows Authentication, and in code, if you use:
it will return the windows username of the logged in user, i.e. MYDOMAIN\MYUSERNAME