Cannot connect to SQL server from python using Active Directory Authentication
<p>I am using pymssql library to connect python to Sql Server. I can connect using windows/sql server authentication. I want to connect using Active Directory Authentication. </p>

<p>Tried the below connection string. But it fails with error : </p>

<pre><code>unexpected keyword authentication


conn = pymssql.connect(server='adventureworks.database.windows.net', authentication = 'Active Directory Password',user='username@server.com',password='Enterpasswordhere', database='dbo')
</code></pre>