denisenkom / pytds

Python DBAPI driver for MSSQL using pure Python TDS (Tabular Data Stream) protocol implementation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SSPI not working in linux due to WINFUNTYPE import

sam2332 opened this issue · comments

from ctypes import c_ulong, c_ushort, c_void_p, c_ulonglong, POINTER,\

This line is giving errors on linux systems due to usage of winctypes, is there anyway to migrate to a flow that does not use the windows only types?

@sam2332 can you upload the error?

@sam2332 Why not use Kerberos as you login from Linux?
Active Directory authentication for SQL Server on Linux

@sam2332 like this:
conn.pytds.connect(dsn=hostname, port=port, use_sso=True)

SSPI is only available on Windows. On Linux you need to use Kerberos or NTLM.