Log into MS-SQL using AD account?

Has anyone been able to log into a Microsoft SQL Server using Active Directory credentials? I have been able to log in using SQL credentials, but AD credentials doesn’t seem to work. I am using pymssql library.

Have you tired something like this:

Connect To Database Using Custom Params  pymssql  '${server}','${username}','${password}','${dbname}'
  • Where username is in format ‘domain-name\username’