all groups > sql server connect > february 2007 >
You're in the

sql server connect

group:

cannot generate sspi context when server in mixed authentication m



cannot generate sspi context when server in mixed authentication m DBA72
2/6/2007 9:11:00 PM
sql server connect: We have a situation for which I have been trying to find an explanation for
over a week. A windows 2005 SP1 server which previously ran in Windows
authentication only suddenly caused "cannot generate sspi context" errors
after we switched it to mixed authentication mode.

-SQL service is running with domain account not trusted for delegation
-We have checked for invalid SPNs in the domain and there are none
registered for the SQL Service on this machine
-TCP/IP protocol is enabled on the server
-Named Pipes connections work fine
-After switching back to Windows authentication and clearing the ticket
cache the problem dissapears

If I understand correctly. The default authentication protocol used over
tcp/ip when connecting to SQL Server is Kerberos but if the client cannot
find a valid SPN for the SQL Service on the server then it should fall back
to NTLM. For some reason however, this is not happening as it should.
Re: cannot generate sspi context when server in mixed authentication m Kevin3NF
2/7/2007 7:00:43 AM
What is SQL Server service starting as...local system, domain user or domain
admin?

--
Kevin Hill
3NF Consulting
http://www.3nf-inc.com/NewsGroups.htm

Real-world stuff I run across with SQL Server:
http://kevin3nf.blogspot.com


[quoted text, click to view]

Re: cannot generate sspi context when server in mixed authenticati DBA72
2/7/2007 7:35:00 AM
It is starting with a domain user account.

[quoted text, click to view]
Re: cannot generate sspi context when server in mixed authenticati Kevin3NF
2/8/2007 7:39:19 AM
A domain admin will need to create an SPN for the SQL Server service
manually using SetSPN or ADSI (I think)

Local system or domain admin starting sql does this automatically...domain
user does not

--
Kevin Hill
3NF Consulting
http://www.3nf-inc.com/NewsGroups.htm

Real-world stuff I run across with SQL Server:
http://kevin3nf.blogspot.com


[quoted text, click to view]

Re: cannot generate sspi context when server in mixed authenticati DBA72
2/8/2007 8:53:00 PM


[quoted text, click to view]
Kevin,
I think you would be right if I was trying to use Kerberos but as I said,
this is not enabled for the sql service account. What I want to do is use
Re: cannot generate sspi context when server in mixed authenticati Kevin3NF
2/9/2007 7:24:14 AM
If you are getting SSPI error, something is attempting to use
Kerberos...even if that was not your intention. This is more of an Active
Directory issue than SQL Server, so I'm pretty much at the end of my
knowledge base...

--
Kevin Hill
3NF Consulting
http://www.3nf-inc.com/NewsGroups.htm

Real-world stuff I run across with SQL Server:
http://kevin3nf.blogspot.com


[quoted text, click to view]

AddThis Social Bookmark Button