SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


IIS 7, SQL, and Kerberos


IIS 7, SQL, and Kerberos

Author
Message
schleep
schleep
SSCertifiable
SSCertifiable (5.1K reputation)SSCertifiable (5.1K reputation)SSCertifiable (5.1K reputation)SSCertifiable (5.1K reputation)SSCertifiable (5.1K reputation)SSCertifiable (5.1K reputation)SSCertifiable (5.1K reputation)SSCertifiable (5.1K reputation)

Group: General Forum Members
Points: 5112 Visits: 1462
Hey gang,

We're trying very hard to connect an internal webapp to an SQL Server 2008 R2.
I really want to know which authenticated user is connecting to SQL Server.
The IIS and SQL servers are on the same physical box.

I believe we are in the classic "double-hop" scenario.

The best info I've found so far is at:
http://www.adshotgyan.com/2011/01/kerberos-double-hop-troubleshooting_4351.html
We've worked through everything in that post, except we're using a single AD account, rather than the 2 in that example. It does not appear to be implied that 2 accounts must be used.

Questions:

When the Application Pool Defaults are set to use the AD domain account we've set up to connect, the connection is made to SQL Server via TCP, but it always uses NTLM, not Kerberos. If I remove NTLM as a provider in IIS - Authentication, I get a 401 - invalid credentials.

Can anyone point me to where to look next?

Thanks!



schleep
schleep
SSCertifiable
SSCertifiable (5.1K reputation)SSCertifiable (5.1K reputation)SSCertifiable (5.1K reputation)SSCertifiable (5.1K reputation)SSCertifiable (5.1K reputation)SSCertifiable (5.1K reputation)SSCertifiable (5.1K reputation)SSCertifiable (5.1K reputation)

Group: General Forum Members
Points: 5112 Visits: 1462
Progress!

Authentication Type: Negotiate
Protocol: Kerberos
Authenticated identity: Domain\Me
Thread identity: Domain\Me
Windows identity: Domain\SQL-Service
Environment identity: SQL-Service

We're now using Kerberos at least as far as the IIS Server!

So now we just need to get to the SQL Server...



Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum







































































































































































SQLServerCentral


Search