Windows Domain Authentication for webapplications

55
Views
1
Answers

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

23
2
23

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

 system.web
 
...
  authentication mode
="Windows"/>
 
...
 
/system.web>

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

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

Read more here: http://msdn.microsoft.com/en-us/library/ms998358.aspx

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

Post your Answer

Search

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