• <i id='vZ9pr'><tr id='vZ9pr'><dt id='vZ9pr'><q id='vZ9pr'><span id='vZ9pr'><b id='vZ9pr'><form id='vZ9pr'><ins id='vZ9pr'></ins><ul id='vZ9pr'></ul><sub id='vZ9pr'></sub></form><legend id='vZ9pr'></legend><bdo id='vZ9pr'><pre id='vZ9pr'><center id='vZ9pr'></center></pre></bdo></b><th id='vZ9pr'></th></span></q></dt></tr></i><div id='vZ9pr'><tfoot id='vZ9pr'></tfoot><dl id='vZ9pr'><fieldset id='vZ9pr'></fieldset></dl></div>
    • <bdo id='vZ9pr'></bdo><ul id='vZ9pr'></ul>
  • <legend id='vZ9pr'><style id='vZ9pr'><dir id='vZ9pr'><q id='vZ9pr'></q></dir></style></legend>
      <tfoot id='vZ9pr'></tfoot>
      1. <small id='vZ9pr'></small><noframes id='vZ9pr'>

      2. 目标主体名称不正确.无法生成 SSPI 上下文

        时间:2024-04-16
          <tbody id='V4NsW'></tbody>

          <small id='V4NsW'></small><noframes id='V4NsW'>

            <tfoot id='V4NsW'></tfoot>
                <legend id='V4NsW'><style id='V4NsW'><dir id='V4NsW'><q id='V4NsW'></q></dir></style></legend>
                <i id='V4NsW'><tr id='V4NsW'><dt id='V4NsW'><q id='V4NsW'><span id='V4NsW'><b id='V4NsW'><form id='V4NsW'><ins id='V4NsW'></ins><ul id='V4NsW'></ul><sub id='V4NsW'></sub></form><legend id='V4NsW'></legend><bdo id='V4NsW'><pre id='V4NsW'><center id='V4NsW'></center></pre></bdo></b><th id='V4NsW'></th></span></q></dt></tr></i><div id='V4NsW'><tfoot id='V4NsW'></tfoot><dl id='V4NsW'><fieldset id='V4NsW'></fieldset></dl></div>
                • <bdo id='V4NsW'></bdo><ul id='V4NsW'></ul>
                  本文介绍了目标主体名称不正确.无法生成 SSPI 上下文的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在努力获得从机器 A 到运行 SQL Server 的机器 B 的 SQL Server 连接.

                  I am struggling to get a SQL Server connection from machine A to machine B which is running the SQL Server.

                  我在谷歌上进行了广泛的搜索,但我发现的所有东西都没有奏效.它们也不会引导您逐步完成解决此问题的过程.

                  I have Googled extensively and all the things I have found have not worked. Nor do they lead you step by step through the process of solving this.

                  我们使用的不是 Kerberos,而是配置的 NTLM.

                  We are not using Kerberos, but NTLM where configured.

                  所涉及的机器是(xx为了安全起见,用来掩盖一些机器名称):

                  The machines involved are (xx is used to obscure some of the machine name for security purposes):

                  • xxPRODSVR001 - Windows Server 2012 域控制器
                  • xxDEVSVR003 - Windows Server 2012(这台机器产生错误)
                  • xxDEVSVR002 - Windows Server 2012(这台机器运行的是 SQL Server 2012)
                  • xxPRODSVR001 - Windows Server 2012 Domain Controller
                  • xxDEVSVR003 - Windows Server 2012 (This machine is generating the error)
                  • xxDEVSVR002 - Windows Server 2012 (This machine is running SQL Server 2012)

                  以下 SPN 已在 DC (xxPRODSVR001) 上注册.出于安全目的,我用 yyy 隐藏了域:

                  The following SPN's are registered on the DC (xxPRODSVR001). I have obscured the domain with yyy for security purposes:

                  CN=xxDEVSVR002,CN=Computers,DC=yyy,DC=local 的注册 ServicePrincipalNames:

                  Registered ServicePrincipalNames for CN=xxDEVSVR002,CN=Computers,DC=yyy,DC=local:

                              MSSQLSvc/xxDEVSVR002.yyy.local:49298
                  
                              MSSQLSvc/xxDEVSVR002.yyy.local:TFS
                  
                              RestrictedKrbHost/xxDEVSVR002
                  
                              RestrictedKrbHost/xxDEVSVR002.yyy.local
                  
                              Hyper-V Replica Service/xxDEVSVR002
                  
                              Hyper-V Replica Service/xxDEVSVR002.yyy.local
                  
                              Microsoft Virtual System Migration Service/xxDEVSVR002
                  
                              Microsoft Virtual System Migration Service/xxDEVSVR002.yyy.local
                  
                              Microsoft Virtual Console Service/xxDEVSVR002
                  
                              Microsoft Virtual Console Service/xxDEVSVR002.yyy.local
                  
                              SMTPSVC/xxDEVSVR002
                  
                              SMTPSVC/xxDEVSVR002.yyy.local
                  
                              WSMAN/xxDEVSVR002
                  
                              WSMAN/xxDEVSVR002.yyy.local
                  
                              Dfsr-12F9A27C-BF97-4787-9364-D31B6C55EB04/xxDEVSVR002.yyy.local
                  
                              TERMSRV/xxDEVSVR002
                  
                              TERMSRV/xxDEVSVR002.yyy.local
                  
                              HOST/xxDEVSVR002
                  
                              HOST/xxDEVSVR002.yyy.local
                  

                  CN=xxDEVSVR003,CN=Computers,DC=yyy,DC=local 的注册 ServicePrincipalNames:

                  Registered ServicePrincipalNames for CN=xxDEVSVR003,CN=Computers,DC=yyy,DC=local:

                              MSSQLSvc/xxDEVSVR003.yyy.local:1433
                  
                              MSSQLSvc/xxDEVSVR003.yyy.local
                  
                              Hyper-V Replica Service/xxDEVSVR003
                  
                              Hyper-V Replica Service/xxDEVSVR003.yyy.local
                  
                              Microsoft Virtual System Migration Service/xxDEVSVR003
                  
                              Microsoft Virtual System Migration Service/xxDEVSVR003.yyy.local
                  
                              Microsoft Virtual Console Service/xxDEVSVR003
                  
                              Microsoft Virtual Console Service/xxDEVSVR003.yyy.local
                  
                              WSMAN/xxDEVSVR003
                  
                              WSMAN/xxDEVSVR003.yyy.local
                  
                              TERMSRV/xxDEVSVR003
                  
                              TERMSRV/xxDEVSVR003.yyy.local
                  
                              RestrictedKrbHost/xxDEVSVR003
                  
                              HOST/xxDEVSVR003
                  
                              RestrictedKrbHost/xxDEVSVR003.yyy.local
                  
                              HOST/xxDEVSVR003.yyy.local
                  

                  现在,如果只有 SQL Server 错误消息更具描述性并告诉我它尝试连接的主体名称,我也许能够诊断出这一点.

                  Now if only the SQL Server error message was more descriptive and told me what principal name it was trying to connect to I might be able to diagnose this.

                  那么任何人都可以指导我如何解决这个问题,或者你能看到我提供的任何东西是错误的吗?

                  So can anyone step me through how to solve this one or can you see anything in what I have provided that is wrong?

                  我很乐意生成更多调试信息,只需告诉我您需要什么.

                  I would be happy to generate more debug info, just tell me what you need.

                  推荐答案

                  我在使用 ASP.NET MVC 应用时遇到了这个问题.

                  I had this problem with an ASP.NET MVC app I was working on.

                  我意识到我最近更改了密码,我可以通过注销并重新登录来修复它.

                  I realized I had recently changed my password, and I was able to fix it by logging out and logging back in again.

                  这篇关于目标主体名称不正确.无法生成 SSPI 上下文的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:如何使用Python+SQLAlchemy远程连接MySQL数据库? 下一篇:TFS 清除通知作业队列

                  相关文章

                  <tfoot id='Uvy55'></tfoot>

                    <legend id='Uvy55'><style id='Uvy55'><dir id='Uvy55'><q id='Uvy55'></q></dir></style></legend>

                    <small id='Uvy55'></small><noframes id='Uvy55'>

                    <i id='Uvy55'><tr id='Uvy55'><dt id='Uvy55'><q id='Uvy55'><span id='Uvy55'><b id='Uvy55'><form id='Uvy55'><ins id='Uvy55'></ins><ul id='Uvy55'></ul><sub id='Uvy55'></sub></form><legend id='Uvy55'></legend><bdo id='Uvy55'><pre id='Uvy55'><center id='Uvy55'></center></pre></bdo></b><th id='Uvy55'></th></span></q></dt></tr></i><div id='Uvy55'><tfoot id='Uvy55'></tfoot><dl id='Uvy55'><fieldset id='Uvy55'></fieldset></dl></div>

                        <bdo id='Uvy55'></bdo><ul id='Uvy55'></ul>