Share via

ADAL not working for x86 applications

Luis 166 Reputation points
2022-12-02T18:11:22.583+00:00

@ADALTeam I’m not able to connect to my Azure database using “Azure Active Directory – Integrated” when using SSMS 17 or x86 ODBC connections, but I’m able to connect with SSMS 19 and x64 ODBC connections.
I know this has been discussed extensively before, my issue is similar to this posting unable-to-load-adalsql-dll-error-when-calling-invoke-sqlcmd
In my case the x86 applications are not working and the x64 are fine. All of this seem to have started after installing SSMS 19, I removed everything and started from scratch but that did not help. I have followed the recommendations on the posting above with no luck. It seems that I have everything I need, but I can’t pinpoint what the issue is or what is that I’m missing, I have:

Both x86 and x64 ADAL files, I have also tried with each one without the other on my system:
C:\Windows\SysWOW64\AdalSQL.dll
C:\Windows\System32\AdalSQL.dll

…and their Registry entries is there:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSADALSQL]\TargetDir = C:\WINDOWS\system32\adalsql.dll

[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\MSADALSQL]\TargetDir =
C:\WINDOWS\SysWOW64\adalsql.dll

When I use SSMS 17 I get this message:
266705-image.png

This is probably a mismatched DLL issue; how can I check where the issue is?

Azure SQL Database
Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments

Answer accepted by question author
  1. Alberto Morillo 35,501 Reputation points MVP Volunteer Moderator
    2022-12-02T19:21:45.24+00:00

    Please read below.

    If any of your applications use the Azure Active Directory Authentication Library (ADAL) for authentication and authorization functionality, it's time to migrate them to the Microsoft Authentication Library (MSAL).

    All Microsoft support and development for ADAL, including security fixes, ends in December, 2022.

    For more information, please read here.


0 additional answers

Sort by: Most helpful

Your answer

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