Lost a connection to AD when SQL is trying to authenticate

pavan kumar 371 Reputation points
2021-01-30T04:42:42.72+00:00

Hi,

How can I fix this within AD. It looks like AD auth failure from one of our sql server. Any idea what exactly the error code is - 0x80090311

Error log:
"SSPI handshake failed with error code 0x80090311, 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. No authority could be contacted for authentication. "

Thank you

Windows for business | Windows Client for IT Pros | Directory services | Active Directory
SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,703 questions
Developer technologies | Transact-SQL
SQL Server | Other
{count} votes

2 answers

Sort by: Most helpful
  1. Thameur-BOURBITA 36,261 Reputation points Moderator
    2021-01-30T22:39:07.537+00:00

    Hi,

    It seems that you SQL server is unable to contact a domain controller.

    Check if the DNS resolution is working fine to resolve the Domain name on your SQL server and if all required network flow are opened with domain controllers. You can use the PortQry to check the network ports between the SQL server and domain controllers:


    Please Don't forget to mark helpful reply as answer

    0 comments No comments

  2. AmeliaGu-MSFT 14,006 Reputation points Microsoft External Staff
    2021-02-01T06:22:13.013+00:00

    Hi pavankumar-6152,

    If your logon domain differs from the domain of the computer that is running SQL Server, please check the trust relationship between the domains.
    And please make sure SPN's correctly registered with Active Directory. Please refer to Register a SPN for Kerberos Connections which might help.
    Please try to add the SQL Server Service account to "Access this computer from network" Policy under Local Security Policy -> Local Policies -> User Rights Assignment -> Access this computer from network".
    You can collect Netmon and see all the connections and communication happening from Client to SQL Server.
    In addition, please make sure the computer name is less than 15 characters. Please refer to this blog.

    Best Regards,
    Amelia

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.