<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Error connecting to Azure SQL DB using Active Directory Authentication in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Error-connecting-to-Azure-SQL-DB-using-Active-Directory/m-p/770842#M23121</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am having trouble connecting to a Azure SQL Database from SAS using Azure Active Directory Authentication. This is our first attempt to connect to a Azure SQL DB.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can successfully connect to the database using sql-authentication (odbc.ini AuthenticationMethod=1), but when I switch to AuthenticationMethod=13, I get the following error:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;ERROR: CLI error trying to establish connection: [SAS][ODBC SQL Server Wire Protocol driver]HY000Failed to connect() to host or proxy. : [SAS][ODBC SQL Server Wire Protocol driver]Failed to authenticate the user 'xxxx@xxxx.onmicrosoft.com' in&lt;BR /&gt;Active Directory (Authentication Method is '13 - Active Directory Password').&lt;BR /&gt;&lt;BR /&gt;NOTE: It takes 10 minutes and 1 second for this error to occur, so it seems like there is some kind of time-out occuring.&lt;BR /&gt;&lt;BR /&gt;I found&amp;nbsp;&lt;A href="https://support.sas.com/kb/67/463.html" target="_blank"&gt;https://support.sas.com/kb/67/463.html&lt;/A&gt;&amp;nbsp;, but that is not the error I get (I have&amp;nbsp;ValidateServerCertificate=0 set in de odbc.ini).&lt;BR /&gt;This article has the same error message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;A href="https://knowledgebase.progress.com/articles/Article/The-connection-to-SQLServer-Azure-using-Active-Directory-fails-when-connecting-with-the-ODBC-driver" target="_blank"&gt;https://knowledgebase.progress.com/articles/Article/The-connection-to-SQLServer-Azure-using-Active-Directory-fails-when-connecting-with-the-ODBC-driver.&lt;/A&gt;&lt;BR /&gt;but I don't how these drivers version related to the ones that are supplied by SAS.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Has anybody got a clue?&lt;BR /&gt;&lt;BR /&gt;Is it possible to use integrated authentication (kerberos) from SAS to Azure SQL Database, or is only username/password authentication possible?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 28 Sep 2021 10:24:21 GMT</pubDate>
    <dc:creator>rpellicaan</dc:creator>
    <dc:date>2021-09-28T10:24:21Z</dc:date>
    <item>
      <title>Error connecting to Azure SQL DB using Active Directory Authentication</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Error-connecting-to-Azure-SQL-DB-using-Active-Directory/m-p/770842#M23121</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am having trouble connecting to a Azure SQL Database from SAS using Azure Active Directory Authentication. This is our first attempt to connect to a Azure SQL DB.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can successfully connect to the database using sql-authentication (odbc.ini AuthenticationMethod=1), but when I switch to AuthenticationMethod=13, I get the following error:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;ERROR: CLI error trying to establish connection: [SAS][ODBC SQL Server Wire Protocol driver]HY000Failed to connect() to host or proxy. : [SAS][ODBC SQL Server Wire Protocol driver]Failed to authenticate the user 'xxxx@xxxx.onmicrosoft.com' in&lt;BR /&gt;Active Directory (Authentication Method is '13 - Active Directory Password').&lt;BR /&gt;&lt;BR /&gt;NOTE: It takes 10 minutes and 1 second for this error to occur, so it seems like there is some kind of time-out occuring.&lt;BR /&gt;&lt;BR /&gt;I found&amp;nbsp;&lt;A href="https://support.sas.com/kb/67/463.html" target="_blank"&gt;https://support.sas.com/kb/67/463.html&lt;/A&gt;&amp;nbsp;, but that is not the error I get (I have&amp;nbsp;ValidateServerCertificate=0 set in de odbc.ini).&lt;BR /&gt;This article has the same error message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;A href="https://knowledgebase.progress.com/articles/Article/The-connection-to-SQLServer-Azure-using-Active-Directory-fails-when-connecting-with-the-ODBC-driver" target="_blank"&gt;https://knowledgebase.progress.com/articles/Article/The-connection-to-SQLServer-Azure-using-Active-Directory-fails-when-connecting-with-the-ODBC-driver.&lt;/A&gt;&lt;BR /&gt;but I don't how these drivers version related to the ones that are supplied by SAS.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Has anybody got a clue?&lt;BR /&gt;&lt;BR /&gt;Is it possible to use integrated authentication (kerberos) from SAS to Azure SQL Database, or is only username/password authentication possible?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Sep 2021 10:24:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Error-connecting-to-Azure-SQL-DB-using-Active-Directory/m-p/770842#M23121</guid>
      <dc:creator>rpellicaan</dc:creator>
      <dc:date>2021-09-28T10:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: Error connecting to Azure SQL DB using Active Directory Authentication</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Error-connecting-to-Azure-SQL-DB-using-Active-Directory/m-p/770844#M23122</link>
      <description>Note: we are running SAS 9.4 M6 on AIX, using SAS/ACCESS Interface to Microsoft SQL Server</description>
      <pubDate>Tue, 28 Sep 2021 10:26:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Error-connecting-to-Azure-SQL-DB-using-Active-Directory/m-p/770844#M23122</guid>
      <dc:creator>rpellicaan</dc:creator>
      <dc:date>2021-09-28T10:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: Error connecting to Azure SQL DB using Active Directory Authentication</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Error-connecting-to-Azure-SQL-DB-using-Active-Directory/m-p/771271#M23135</link>
      <description>&lt;P&gt;This looks like a tricky database connection configuration problem. Getting help from SAS Tech Support is probably your best option.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 01:56:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Error-connecting-to-Azure-SQL-DB-using-Active-Directory/m-p/771271#M23135</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-09-30T01:56:00Z</dc:date>
    </item>
  </channel>
</rss>

