Connection when both "Force Enryption" and "Extended Protection" are active
See original GitHub issueQuestion
I’m trying to connect to a SQL Server (2012) using Windows Authentication where both Force Enryption
is set to true
and Extended Protection
is set to required
.
What I’m getting on the Client side is:
Login failed. The login is from an untrusted domain and cannot
be used with Windows authentication.
ClientConnectionId:<redacted>
Server side:
SSPI handshake failed with error code 0x80090346, state 46 while
establishing a connection with integrated security; the connection
has been closed. Reason: The Channel Bindings from this client are
missing or do not match the established Transport Layer Security (TLS)
Channel. The service might be under attack, or the data provider
or client operating system might need to be upgraded to support
Extended Protection. Closing the connection. Client's supplied SSPI
channel bindings were incorrect
[CLIENT: <redacted>]
I’ve tried many different configuration options (client side) including:
sslProtocol
all optionstrustStore
alongsidetrustStorePassword
with a self signed certtrustServerCertificate
serverSpn
alongside corresponding server settingencrypt
All results in the same error combination. OS instances are identical on Windows Sever 2012 R2 latest SP.
Any hints would be highly appreciated.
Thanks Michael
Issue Analytics
- State:
- Created 5 years ago
- Comments:42 (21 by maintainers)
Top Results From Across the Web
Connect to the Database Engine Using Extended Protection
Force Encryption is on the Protocols for MSSQLSERVER Properties (Flags Tab) in SQL Server Configuration Manager. Extended Protection. Possible ...
Read more >SQL Server's Extended Protection - Redmondmag.com
Extended Protection essentially protects against a very specific type of attack where legitimate client credentials are used to connect to a ...
Read more >Why enable Extended Protection for Authentication?
The feature enhances the protection and handling of credentials when authenticating network connections using Integrated Windows Authentication ...
Read more >How to set and use encrypted SQL Server connections
The main reason why a connection between SQL Server instance and any client application should be encrypted is authorized communication between ...
Read more >Extended Protection | Windows Management and Scripting
Posts about Extended Protection written by Alin D. ... to use channel binding, you must force encryption for all SQL Server connections.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Just an update for those following the thread, we are still in the middle of investigating this.
From my initial investigation, to enable channel bindings in the driver I applied the following fix to the
intAuthHandShake
toKerbAuthentication.java
file:However, the above change doesn’t seem to have an impact and I still receive the login error. I’ll continually post updates as I investigate.
Updates (I’ll post brief updates in this post to avoid spam)
Hi @cheenamalhotra
Thanks. I really appreciate that you took the time to investigate this!!
Does it make sense to convert this question to an enhancement request then?!
Thanks again Michael