Psst! Did you know DevelopmentNow is a mobile web site design agency?

Contact us for help mobilizing your site, or to sign up for our beta Mobile Web SDK!
all groups > iis security > june 2008 >

iis security : Kerberos Problem with App Pool running as Domain Account



VC
6/19/2008 6:00:00 AM
Good Morning,

I have multiple applications running with integrated security to connect to
a SQL back-end database. Everything works fine on our production servers
which use the default system accounts for the Application Pool. However, I
had to change this to use a domain account because our DR server needed to
work with the same DNS Alias which conflicted with the already registered
SPNs.

As recommended, on our DR server, I began testing by changing the
Application Pool to run under a domain account. I then registered the
following SPNs:

setspn –A HTTP/iisserver domain\user
setspn –A HTTP/iisserver.domain.com domain\user
setspn –A MSSQLSvc/sqlserver:1433 domain\user

Additionally, I set the domain\user account to "Account is trusted for
delegation" and the iiserver computer account to "Trust computer for
delegation". Still, I receive the following error when connecting to the
database:

Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.

This works fine on the live server, so I'm assuming this is related to
changing the Application Pool to run under a domain account. Any suggestions
would be greatly appreciated.

VC
6/23/2008 7:52:03 AM
Thank you for the response.

There are some authentication types of "Negotiate" however, there are no
duplicate SPNs, and as far as I can tell everything is setup as it should be.
My only thought might be that the application pool is running under a domain
account, perhaps IIS itself has to as well (instead of the IUSR_IISSERVER
account). But is this even supported, or likely to be the cause of the
problem?

Here is an error from the security log:

Event Type: Failure Audit
Event Source: Security
Event Category: Logon/Logoff
Event ID: 537
Date: 6/23/2008
Time: 10:36:56 AM
User: NT AUTHORITY\SYSTEM
Computer: IISSERVER
Description:
Logon Failure:
Reason: An error occurred during logon
User Name:
Domain:
Logon Type: 3
Logon Process: Authz
Authentication Package: Kerberos
Workstation Name: IISSERVER
Status code: 0xC000040A
Substatus code: 0x0
Caller User Name: IISSERVER$
Caller Domain: TIB
Caller Logon ID: (0x0,0x3E7)
Caller Process ID: 1048
Transited Services: -
Source Network Address: -
Source Port: -

And here's the negotiate authentication which occurs after:

Event Type: Success Audit
Event Source: Security
Event Category: Logon/Logoff
Event ID: 528
Date: 6/23/2008
Time: 10:36:56 AM
User: DOMAIN\USER
Computer: IISSERVER
Description:
Successful Logon:
User Name: user
Domain: DOMAIN
Logon ID: (0x0,0xA2489CC)
Logon Type: 4
Logon Process: Advapi
Authentication Package: Negotiate
Workstation Name: IISSERVER
Logon GUID: {e241c991-82ad-2241-b533-510eff0f2c75}
Caller User Name: IISSERVER$
Caller Domain: DOMAIN
Caller Logon ID: (0x0,0x3E7)
Caller Process ID: 840
Transited Services: -
Source Network Address: -
Source Port: -

Any further help would be appreciated.

[quoted text, click to view]
Ken Schaefer
6/23/2008 12:59:56 PM
a) you need to make sure that the browser is authenticating using Kerberos
(and not NTLM). Check the Windows Event logs for this

b) you need to remove any duplicate SPNs you might have registered under the
original computer account

http://adopenstatic.com/faq has a list of IIS and Kerberos articles that
explain everything you ened to do/check.

Cheers
Ken

[quoted text, click to view]
Consultant
6/23/2008 3:20:14 PM
is the domain account it is running under "trusted for delegation"?

[quoted text, click to view]

AddThis Social Bookmark Button