Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a problem IIS 6 server that prompts domain users for login credentials by both machine name and IP address. If the user tries to login by machine name (http://machineName/Application) then IIS prompts the user but rejects the login credentials no matter what is entered. If the user tries to log in by ip address then they are prompted but if the credentials are correct then the login succeeds and the application is loaded.

I recently had to demote the master domain controller and re-promote it (don't ask...) and so I dropped all the servers from the old domain and re-added then to the new domain (of the same name) and they all work fine but this one IIS 6 web server.

I re-imaged the IIS 6.0 server from bare metal just to get past this problem but the new image is demonstrating the exact same issue!

Even when logged in locally to webserver1 I can't even get past the login prompts when trying to connect to http://webserver1/app

What am I missing?

share|improve this question
    
I figured out the answer on this. SetSPN. –  Neal Bailey Aug 17 '11 at 2:36
    
Post the answer to this question. Then after a couple days you can accept the answer. Good on you for figuring it out. –  murisonc Aug 17 '11 at 3:24
add comment

1 Answer

up vote 0 down vote accepted

Ok... as I was starting to loose hope (18 hours in) I found this (very) similar question which led me down the path to the resolution here.

"

When you switch from using a machine account, such as Network Service, to a domain account and if your application uses Kerberos authentication to authenticate its clients, Kerberos authentication will stop working unless you have a service principal name for the domain account registered in Microsoft® Active Directory® directory service.

To create an SPN for a domain account

1.Install the Windows Server 2003 tools from the Windows Server 2003 CD.
2.From a command prompt, run the Setspn tool as follows:

setspn -A HTTP/webservername domain\customAccountName

setspn -A HTTP/webservername.fullyqualified.com domain\customAccountName

"

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.