Click here to Skip to main content
11,570,352 members (47,065 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET VisualStudio
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
good
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[^]
  Permalink  
Comments
quentininsa at 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 at 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
good
Please Sign up or sign in to vote.

Solution 2

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[^]
  Permalink  

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

  Print Answers RSS


Advertise | Privacy | Mobile
Web03 | 2.8.150624.2 | Last Updated 14 Mar 2011
Copyright © CodeProject, 1999-2015
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