Click here to Skip to main content
13,056,352 members (119,955 online)
Rate this:
Please Sign up or sign in to vote.
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 12-Mar-11 23:04pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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

Windows Authentication IIS 7x[^]
quentininsa 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.
quentininsa 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?
Rate this: bad
Please Sign up or sign in to vote.

Solution 2


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

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170728.5 | Last Updated 14 Mar 2011
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100