question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed to connect with AD-MFA in SQL Server on Azure

See original GitHub issue

Failed 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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

7reactions
ktrcommented, Apr 12, 2022

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!

0reactions
joelrosa21commented, Apr 12, 2022

@ktr It worked! thank you so much!!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found