Unable to connect to mssql database through python pymssql with active directory authentication from linux machine

326 views
Skip to first unread message

Vikas Tayde

unread,
Jun 24, 2020, 10:18:17 AM6/24/20
to pymssql
I am trying to connect to mssql database through python with pymssql with active directory authentication
My mssql database are present on window machin.

My code is :
conn = pymssql.connect(server=url, user=username, password=password, database=database)
here username = domain\username

I am getting below error:
(18452, b'Login failed. The login is from an untrusted domain and cannot be used with Windows authentication.DB-Lib error message 20018,severity 14:\nGeneral SQL Server error: Check messages from the SQL Server\nDB-Lib error message 20002, severity 9:\nAdaptive Server connection failed

Can you please suggest solution, we need to connect to 1000 mssql database so want to avoid kerbores things.
Reply all
Reply to author
Forward
0 new messages