Link to home
Start Free TrialLog in
Avatar of frankrizzo1856
frankrizzo1856

asked on

IIS7 Windows Authentication: Pop up boxing requesting credentials, not same behavior as IIS6

In IIS6, we would set a site to use Windows Integrated Authentication and set the proper NTFS permissions on the site's home directory.  Users who had correct NTFS permissions could view site and no one else could.  

In IIS7, I set the same site (migrated from iis6 to iis7) to use Windows Authentication and set the correct NTFS permissions (atleast what I think is correct) and no matter who the user is, they get a pop up box asking for username/password from the browser.  When I go to the site in IIS6, I do not get prompted for credentials and get directed directly to the site (either page for valid users or a custom unauthorized access page for those without access.

What am I missing here?  Thanks!
Avatar of Ted Bouskill
Ted Bouskill
Flag of Canada image

I'm going to assume you are using IE.

When you connect to the website what is the security zone on the right hand side of the status bar?  'Local Intranet', Trusted Sites' or 'Internet'

If it's 'Internet' that is your problem.
Avatar of frankrizzo1856
frankrizzo1856

ASKER

This is an internal intranet site, so not the issue there.
Yes it is an issue.  The browser is responsible for determining how to automatically log into a web server.

When IIS is setup to use Windows Authentication it sends a response to the browser requiring Windows Credentials to log in.  The browser decides if the users current running credentials on the client should be used.

So, if the internal site is http://www.mydomain.com/ and if the "Primary Dns Suffix" in the IP connection settings is 'mydomain.com' then IE will mark the site as "Local Intranet" and automatically sign you into the web site without showing the prompt.

If the internal site is http://www.internalsite.com/ and the "Primary Dns Suffix" in the IP connection settings is 'mydomain.com' then you need to make *.internalsite.com a 'Trusted Site' and set the feature "Automatically Login using Windows Credentials" then the user will be logged in automatically.

Cheers
It is a trusted site and the same site in IIS6 with the same exact URL and domain works as expected from the same browser/workstation.  This is why I am saying it is not a browser issue.
I'm sorry but this is always a browser issue even though it might not seem that way.

For example in Firefox you can set automatic log in using a different strategy but Opera will always prompt when a new session is started.  Safari and Chrome will always prompt once and you can save the credentials.

I manage a lot of IIS servers with both IIS 6 and IIS 7 in an intranet with 23 different domains and too many websites to count.  Every single time it turns out to be a browser/client issue.

Sometimes it's a registry issue that has to be fixed with Group Policy.

Can you confirm you have the 'Automatically login using Windows Credentials' set in IE for the 'Trusted Sites'?
Yes, "automatic login" is set in IE settings.  
I'd double check your settings.  If you followed the recommendations this shouldn't be happening.
ASKER CERTIFIED SOLUTION
Avatar of frankrizzo1856
frankrizzo1856

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
We rebuilt server to resolve.