Solved

IIS 7 authentication

Posted on 2011-02-23
14
972 Views
Last Modified: 2012-06-27
I have an intranet site that uses your domain credentials to logon automatically with IIS 6, it works great.  I'm trying to move it to a new 2008 R2 server with iis 7, of course it does not work now.  It always prompts me for a username and password, if I enter it, everything works.  How do I get it to work like IIS 6??? why did they need to change everything... (pulling hair out)!
thanks
0
Comment
Question by:paradoxes
  • 7
  • 6
14 Comments
 
LVL 10

Expert Comment

by:pramodsk40
Comment Utility
in control panel,click Programs and Features, select Turn Windows Features on or off from left side.
Expand Internet Information Services >> World Wide Web Services >> Security
Select Windows Authentication and click OK.Reset the IIS and Check in IIS now for windows authentication

select apppool to classic mode and see if it works.

Also read this....

http://mvolo.com/blogs/serverside/archive/2008/02/11/IIS-7.0-Two_2D00_Level-Authentication-with-Forms-Authentication-and-Windows-Authentication.aspx
0
 

Author Comment

by:paradoxes
Comment Utility
pramodsk40,

I've already had the authentication installed and I've tried the classic mode on the application pool.  As for the blog, I read it over and I'm not sure if it is the same problem I'm having as it talks about forms logon. Anyway, when I look at my web.config, it does not have any of the authentication items, it's pretty basic...  here it is:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <defaultDocument>
            <files>
                <clear />
                <add value="Default.asp" />
            </files>
        </defaultDocument>
        <directoryBrowse enabled="false" />
    </system.webServer>
    <system.web>
        <identity impersonate="false" />
    </system.web>
</configuration>
0
 
LVL 29

Expert Comment

by:Paul Jackson
Comment Utility
Have you enabled delegation on the new IIS server assuming that your sql server is on another server somewhere.
0
 

Author Comment

by:paradoxes
Comment Utility
ok, stupid moment...

why would I need sql on this server?  I just want to have it log me onto the intranet site with my domain credentials...
0
 
LVL 29

Expert Comment

by:Paul Jackson
Comment Utility
I was just wondering if you website had a sql backend, if it was on another server you would be encountering the double hop authentication problem which would require you to enable delegation for your IIS server in Active Directory Users and Computers. however I just noticed you're not using integrated authentication so I don't think it affects you.
0
 

Author Comment

by:paradoxes
Comment Utility
ok, sorry...
I thought that MS made some new funky requirements for IIS...
0
 
LVL 29

Accepted Solution

by:
Paul Jackson earned 500 total points
Comment Utility
Hmm in your original post you say the site uses domain credentials to logon to the intranet site, yet in your web.config identity impersonate= false, shouldn't this be true to allow automatic login.

<system.web>
        <identity impersonate="true" />
    </system.web>
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 

Author Comment

by:paradoxes
Comment Utility
I changed this setting and restarted the server, no luck...  it's odd, it just doesn't pass the logon info.  I'm totally stumped.  
0
 

Author Comment

by:paradoxes
Comment Utility
Is there something I need to do at the IIS server level?  I have two Intranet sites on this server, one does not need any authentication, the other does.  I've been changing all the configurations at that level.
0
 
LVL 29

Expert Comment

by:Paul Jackson
Comment Utility
0
 

Author Comment

by:paradoxes
Comment Utility
jacko72,

This article helped, sort of, actually I'm a little confused now.  I read the article and found that I needed to turn on Basic authentication with my Windows Authentication, but this does not make sense to me.  Is it using the windows authentication? Or Basic, or both?  

How is this different than the Integrated Windows Authentication on IIS 6,  I guess I thought they were the same…

It is working now, I just don't fully understand why.

Thank you for your help!
 
0
 
LVL 29

Expert Comment

by:Paul Jackson
Comment Utility
The way authentication is done changed in IIS 7. What used to happen was the user would get authenticated by IIS and then again by ASP.net (do you even have asp.net websites?).
This is what was called two stage authentication apparently now it is all done at the same time.
I'm not convinced however that you should need basic authentication enabled.
You might want to check out this link to see if it clears anything up : http://www.iis.net/ConfigReference/system.webServer/security/authentication/windowsAuthentication

However if it is working you might well want to leave it alone.
0
 

Author Comment

by:paradoxes
Comment Utility
Ok, you'll love this.

I turned Basic authentication off again, and everything still works!  all I have on is the windows authentication and the asp impersonate...

So... maybe there is a small bug or something or by stopping and starting and not using the restart button it initiated the settings.  

Everything is working the way it needs to, only windows authentication and impersonate are on.

Thank you for your help!
0
 
LVL 29

Expert Comment

by:Paul Jackson
Comment Utility
No problem, glad its working.
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Here are the symptoms: You start receiving calls from users that one of your legacy web apps isn't coming up, so you log into your IIS 5 server to check it out.  When you pull up the services, you notice that the WWW Publishing service isn't runn…
Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now