Failed to connect with AD-MFA in SQL Server on Azure
See original GitHub issueFailed to connect with AD-MFA in SQL Server on Azure with error:
The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "Failed to validate the server name in a certificate during Secure Sockets Layer (SSL) initialization.".
System information:
- Operating system (distribution) and version: Windows 10
- DBeaver version: 21.3.2
Connection specification:
- Database name and version: Microsoft SQL Azure (RTM) - 12.0.2000.8
- Driver name: Microsoft JDBC Driver for SQL Server 9.2.0
- Do you use tunnels or proxies (SSH, SOCKS, etc)? No.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:8 (2 by maintainers)
Top Results From Across the Web
Unable to connect to Azure SQL using SSMS with Universal ...
I am unable to connect to Azure SQL Server using Active Directory - Universal with MFA option. The same credential works with Azure...
Read more >Connecting to SQL Server using Powershell with Azure AD MFA
I found the issue, and my problem is more minuscule than I thought. I found my answer in this answer: Azure SQL Grant...
Read more >Cannot authenticate to Azure SQL Server with MFA
The error is immediate. I expected to be prompted with a Multi Factor Auth request, but I'm not. More info: I can connect...
Read more >DataGrip Azure Multi-factor authentication
In SQL Server Manager I connect using a method called 'Azure ... using the latest microsoft jdbc driver, but end up getting the...
Read more >Troubleshoot connection issues to Azure SQL Database
User error: for example, mistyped connection parameters, such as the server name in the connection string. Steps to resolve persistent connectivity issues. Set ......
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 Free
Top 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
Go to “Edit Driver Settings,” click the “Libraries” tab, then click “Add Artifact,” then add the Maven dependency declaration:
<!-- https://mvnrepository.com/artifact/com.microsoft.azure/msal4j --> <dependency> <groupId>com.microsoft.azure</groupId> <artifactId>msal4j</artifactId> <version>1.11.3</version> </dependency>
Hope this helps!
@ktr It worked! thank you so much!!