SQL Server SSPI handshake failed报错,sql server修改windows账户密码的影响,sql server订阅发布客户端访问一直报错

【1】错误

本机 10.20.50.17

  

  Login failed. The login is from an untrusted domain and cannot be used with Windows authentication. [客户端: 10.20.50.23]  
 SSPI handshake failed with error code 0x8009030c, state 14 while establishing a connection with integrated security; the connection has been closed. Reason: AcceptSecurityContext 失败。Windows 错误代码指示失败的原因。 登录没有成功   [客户端: 10.20.50.23]

【2】分析

环境:

(1)原本两个机器是订阅发布库,17为发布、分发服务器,23位订阅服务器

(2)原本两个机器的管理员账户 admin 密码都是一样的,今天突然改了,改成不一样了

分析:

(1)密码不一样后,出现了【1】中的问题

推断,必定是因为修改了 windows 账户的密码造成的,且该windows账户 在sql server中是存在且有权限的;错误信息中也提示出是windows账户登录验证失败

   Login failed. The login is from an untrusted domain and cannot be used with Windows authentication

结论原因

  从报错信息看应该跟域账号有关系,域账号不受信任,所以无法使用windows验证。

  常见于 10.20.50.17 中曾用 admin 用户(遇到的情况是域账号/windows账户)连接到数据库,后来 admin 用户密码被修改,但 10.20.50.23 中仍在使用旧密码尝试连接,导致登录验证报错。

可能的其他原因:另外遇到过一个情况是A用户的域账号被锁定了,登录时会报这个错误。

【3】解决

登录10.20.50.23 服务器断开以前使用 admin 用户的连接

或者

登录数据库服务器kill掉A用户的连接

  

上图只是解决后的演示:

   注意,net_library 应该是 tcp/ip ,这才是我们要找的对外的连接;kill即可;

【参考文档】

参考自:https://blog.csdn.net/Hehuyi_In/article/details/95058772

http://www.secretgeek.net/boring_sql_one

https://blogs.msdn.microsoft.com/docast/2016/02/11/common-sspi-handshake-failed-errors-and-troubleshooting/

原文地址:https://www.cnblogs.com/gered/p/14578111.html