Subscribe

RSS Feed (xml)

Configuring Windows Authentication

Open the web.config file. Find the authentication tag under


system.web and set the


mode to Windows.This is the default setting if you created the web.config file in Visual


Studio.


The web.config file is as follows:


<system.web>


<authentication mode="Windows">


<system.web>


You must also configure IIS to require authentication.To do this, follow these steps:


1. Open Administrative Tools from either the Start menu or the Control Panel


(depending on the OS).


2. Open Internet Information Services.


3. Branch out the tree to find your Web application folder.


4. Right-click your Web application folder and choose Properties.


5. Click the Director Security tab.


6. Click the Edit button in the Authentication Control section.


7. Uncheck the Anonymous Access box and make sure Integrated Authentication


(Challenge Response) option is checked.


8. If you want to allow the users to type their passwords if IIS Challenge Response


fails, check Basic Authentication.


9. Click both OK buttons and close IIS.


No comments:

Archives

Variety in the Web World