简体   繁体   中英

Cross domain windows authentication SSMS Error SQL Server 2012 - pre-login handshake failed

I am trying to achieve cross domain windows authentication access to SQL Server database. I am logged in locally as ABC\\user, and SQL Server db is allowing access for XYZ\\user. I tried to follow the instructions in the following link, in order for me to access the db without having to do remote desktop.

http://www.olegsych.com/2009/05/crossing-domain-boundaries-windows-authentication/

However, when I open SSMS locally and connect to db server using windows authentication, it gives me a pre-login handshake error. Please see the error image below.

Prelogin Handshake Error

Here are the things that I have troubleshooted:

1) Make sure that firewalls are all off.

2) Make sure that the network is not blocking traffic to and fro.

3) In SQL Server Configuration Manager, under SQL Server Network Configuration, all IP Addresses in TCP/IP protocols are set to "YES" for Active and Enabled settings.

4) Check that my local computer is using IPv4 and IPv6 is DISABLED.

5) I am able to reach SQL Server locally when using SQL Authentication.

I would appreciate for any suggestions.

As a consultant I got the same problem with both of my clients. I've solved it by creating a .bat script with the following line. Just adapt it to your SSMS directory and user account.

runas /netonly /user:domain\username "C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\ManagementStudio\Ssms.exe"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM