Click here to Skip to main content
15,867,964 members
Please Sign up or sign in to vote.
5.00/5 (3 votes)
I have a simple website (intranet) where I want to authenticate the users accessing the site against our AD. The site is hosted on the same machine as AD (Server 2008 R2)

I have removed "anonymous" authentication and enabled "Windows" authentication on IIS and set it in the web config file, but I still get a "login" box from Windows when accessing the site.

I have managed to enable this on my dev machine (Win7 64bit) [VS2010]

I have searched the web and have seen links to enable NTLM auth etc, then there are some links that suggest you need to run a command line tool to "enable" Windows7 and Server2008R2 to "trust" the site and all kinds of "not so normal" stuff.

I am pretty sure it is a simple thing to setup, but for the life of me, I cannot get it to function correctly.
Posted

Do you have installed the windows authentication role service? Check this. By default it's not installed.

Windows Authentication IIS 7x[^]
 
Share this answer
 
Comments
Quentin in SA 14-Mar-11 12:05pm    
Thanks for the link. The service role is already installed. I had a read through the IIS site link and I will follow the steps one by one. I am pretty sure it is what I have tried, but you never know, maybe I skipped something.
Quentin in SA 14-Mar-11 13:28pm    
OK, so I think it is working, but what I had to do was add the site to "Local Intranet" sites under IE's security settings. Surely this is not normal??

It means I will have to add the site to about 80 workstations to enable Windows Authentication? surely not?
Hi,

Found the answer.
My machine was picking the intranet site up as "Internet".

http://social.technet.microsoft.com/Forums/en/winserverGP/thread/f0892766-c7ce-4083-bfb8-4c0cde57f671[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900