all groups > iis security > may 2006 >
You're in the

iis security

group:

Kerberos timout with IIS6, ASP.Net and SQLServer


Kerberos timout with IIS6, ASP.Net and SQLServer roarfred NO[at]SPAM gmail.com
5/17/2006 1:34:15 PM
iis security: I've been struggling with a problem for the last two months that are
almost driving me nuts...

We have a traditional ASP.Net 1.1 web site accessing a SQL2000 database
using delegation and a trusted connection. I have seen many posts
regarding this setup, and we had quite some trouble getting it all
working ourself. User could finally access the web server and pull data
from the database, fully authenticated through Kerberos and Integrated
Windows Authentication.

The problem is:
- After a user have been inactive for anything from a few minutes to
half an hour, the connection with the database is broken and it
responds with the well known login failed for user (null) error.

Some more facts:
- The connection with the web server works fine, and as long as the
exception is trapped in the code, all pages are displayed (as intended
when a db connection is unavailable, that is)
- I got a feeling that the Kerberos ticket is expireing and the web
server doesn't bother asking the client for a new one.
- We do have trust for delegation set up in the AD for the web server
to access any resource
- We do have a HTTP/fqdm SPN set up in AD

Questions:
- Any suggestions to what this might be caused by?
- Would we need a SPN for the DB server too? (This is just accessed
through the netbios name)
- Do you know of any Kerberos-related settings that would make the
initial authetication work, but connections to fail at a later point?


One more thing... The very same problem was posted unanswered here in
several newsgroups about a year ago:
http://groups.google.com/group/microsoft.public.adsi.general/browse_thread/thread/d53ecbeaa94af2d3/133e72c9029b8b32?lnk=st&q=kerberos+timeout+iis6&rnum=4#133e72c9029b8b32

This posting describes a bit more what have been tried and not. I have
done very much the same approach, with no more luck than that guy.

(I have not found any other postings that I can tell are describing the
same problem as my)


Any help on this matter is most appreciated.

Regards,
Roar Fredriksen
Systems Engineer
Omega Project Solutions Inc
Re: Kerberos timout with IIS6, ASP.Net and SQLServer Ken Schaefer
5/18/2006 12:00:00 AM
Hi,

Can you enable Kerberos audit logging on the IIS box, and post the relevant
events that are being logged when the problems start occuring?
http://support.microsoft.com/?id=262177

Cheers
Ken

[quoted text, click to view]

Re: Kerberos timout with IIS6, ASP.Net and SQLServer Roar
5/18/2006 8:12:45 AM
Thanks for your reply Ken!

Unfortunately, we are developing in a shared environment without direct
access to the web server. I will check with the Administrator if we can
have this done on this server.

Should this log kerberos events for communication with the sql server,
the client's browser or both?
Re: Kerberos timout with IIS6, ASP.Net and SQLServer Ken Schaefer
5/21/2006 12:00:00 AM
This will log Kerberos events on the IIS server (i.e. logon failed, ticket
corrupt/altered etc).
You will probably want to enable this on the SQL Server as well, just in
case the problem is at the SQL Server box rather than at the IIS box

Cheers
Ken

[quoted text, click to view]

AddThis Social Bookmark Button