SSPI handshake failed with error code 0x80090304
-
27 ianuarie 2012 22:56
Hi,
I've seen the following errors on two different SQL Server 2008 R2 Express systems recently:
2012-01-25 16:56:29.49 Logon Error: 17806, Severity: 20, State: 14.
2012-01-25 16:56:29.49 Logon SSPI handshake failed with error code 0x80090304, state 14 while establishing a connection with integrated security; the connection has been closed. Reason: AcceptSecurityContext failed. The Windows error code indicates the cause of failure. [CLIENT: <local machine>].
2012-01-25 16:56:29.53 Logon Error: 18452, Severity: 14, State: 1.
2012-01-25 16:56:29.53 Logon Login failed. The login is from an untrusted domain and cannot be used with Windows authentication. [CLIENT: <local machine>]System Configuration is as follows: Both machines are workgroup members. SQL Server is running under localsystem. User is logged into a local account. Protocol is shared memory. Clients are connecting via System.Data.SqlClient.SqlConnection. Authentication is NTLM.
Does anyone know what could be causing these infrequent failures?
Toate mesajele
-
28 ianuarie 2012 16:30
Hello,
I've had this issue arise when the server could not contact any of the domain controllers. Verify that the server can contact the domain controllers through the same interface that SQL Server is listening on.
Edit: Double check to make sure your DNS entries are correct as well not being able to resolve the DC correctly could be a symptom of bad DNS records.
-Sean
- Editat de Sean GallardyMicrosoft Community Contributor 28 ianuarie 2012 18:25
-
28 ianuarie 2012 19:28
Hi,
Systems are not domain members. Does the domain controller still apply in this case? Is there anyway to configure windows or sql server to ignore the domain controller?
Dean
-
28 ianuarie 2012 22:33Moderator
If clients are not domain members, consider using SQL authentication instead.
Dan Guzman, SQL Server MVP, http://weblogs.sqlteam.com/dang/- Propus ca răspuns de Peja TaoModerator 30 ianuarie 2012 05:46
-
28 ianuarie 2012 23:04
But Dean0314 says protocol are Shared Memory, so the clients are local to the machine. When Windows Auth does not work on a local connection, it's not fun anymore. Particularly when we are talking about a workgroup, so there is no AD that can pull our legs.
Sorry, I have no idea of what is going on.
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se -
28 ianuarie 2012 23:35
But Dean0314 says protocol are Shared Memory, so the clients are local to the machine. When Windows Auth does not work on a local connection, it's not fun anymore. Particularly when we are talking about a workgroup, so there is no AD that can pull our legs.
Sorry, I have no idea of what is going on.
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se
You are correct, I did not read the last part of his post correctly.Dean, if this is code you are writing could you share with us the connection object code you are using?
When you say 'logged in with a local account' are you talking about an account such as public or an actual account in the users group that is a local login for windows?
-
30 ianuarie 2012 14:55
Hi,
The connection code is basically:
String connectionString = @"
Data Source=localhost\SQLEXPRESS;Initial Catalog=MyDb;Trusted_Connection=Yes";
SqlConnection con = new SqlConnection(connectionString);
con.Open();
The local accunt in this case is Administrator.
Dean
-
11 iulie 2012 15:17Have any of you found a solution to this? We are experiencing the same issue during a scripted SharePoint install.
-
11 iulie 2012 18:20We never found a root cause. We did turn of auto_close on our databases for a different issue. We have not seen the issue since.