related to this question Error 28000: Login failed for user DOMAIN\\user with pyodbc
I was able to solve the login failed error listed there but after adding the Trusted_Connection parameter, I am getting the below error. any idea how to solve this? I followed the instructions on microsoft's documentation here https://learn.microsoft.com/en-us/sql/connect/python/pyodbc/python-sql-driver-pyodbc?view=sql-server-2017
cnxn = pyodbc.connect('DRIVER={ODBC Driver 17 for SQL Server};SERVER='+server+';DATABASE='+database+';UID='+username+';PWD='+ password+';Trusted_Connection='+tc)
pyodbc.Error: ('HY000', "[HY000] [Microsoft][ODBC Driver 17 for
SQL Server]SSPI Provider: Server (MSSQLSvc/<server>:<port>@<domain>)
unknown while looking up 'MSSQLSvc/<server>:<port>@<domain>’
(cached result, timeout in 1073 sec) (851968) (SQLDriverConnect)")