ActiveDirectoryIntegrated login to Azure SQL server from linux VM.

Ranjan 6 Reputation points
2021-05-04T16:09:53.68+00:00

we have federated Azure AD using on prem DC. Later we create a linux instance and joined it to AAD using Azure ADDS and trying to connect to Azure SQL server using ActiveDirectoryIntegrated based authentication.
we are facing this error when trying to login to SQL

sqlcmd -E -S **************** -d **************
Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : Login timeout expired.
Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : Failed to authenticate the user '' in Active Directory (Authentication option is 'ActiveDirectoryIntegrated').
Error code 0x191; state 401

Error requesting SAML token.
.
Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : TCP Provider: Timeout error [258]. .
Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : Unable to complete login process due to delay in login response.

We followed the doc for connecting linux server to AD https://learn.microsoft.com/en-us/azure/active-directory-domain-services/join-ubuntu-linux-vm

Similar thing is working for Windows based VM.

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,992 questions
{count} votes

Your answer

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