Windows Domain Authentication for webapplications


I am having a Internal web application which needs to use windows Domain Authentication. How to do this??

edit | flag
William Patrick
Asked on: Jun 16, 2011 at 9:32PM

1 Answers


You can change your web.config like this.
add this to your web.config

  authentication mode

To configure Windows authentication

  1. Start Internet Information Services (IIS).
  2. Right-click your application's virtual directory, and then click Properties.
  3. Click the Directory Security tab.
  4. Under Anonymous access and authentication control, click Edit.
  5. Make sure the Anonymous access check box is not selected and that Integrated Windows authentication is the only selected check box.

You can then deal with the business or authorization using web.config again. for example

 deny users
="DomainName\UserName" />
 allow roles
="DomainName\WindowsGroup" />

Read more here:

edit | flag
Gokul A
Answered on: Jun 16, 2011 at 9:41PM

Post your Answer


Welcome to Ask Amoeba!
This is 100% free and interactive site for sharing professional Questions and Answers, Opensource projects, Interview questions.
Learners, beginners, Experts stop and share your knowledge and ideas!

Browse Categories

Browse Tags