Windows Domain Authentication for webapplications
I am having a Internal web application which needs to use windows Domain Authentication. How to do this??
Asked on: Jun 16, 2011 at 9:32PM
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
Start Internet Information Services (IIS).
Right-click your application's virtual directory, and then click Properties.
Click the Directory Security tab.
Under Anonymous access and authentication control, click Edit.
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:
edit | flag
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!