https://bugs.winehq.org/show_bug.cgi?id=56400
Bug ID: 56400 Summary: SSPI authentication does not work when connecting to sql server Product: Wine Version: 9.3 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: secur32 Assignee: wine-bugs@winehq.org Reporter: alex.pesikin@gmail.com Distribution: ---
Created attachment 76152 --> https://bugs.winehq.org/attachment.cgi?id=76152 winedebug log
I have kubuntu 22.04 in the AD domain, via sssd. When I try connect through windows auth in my app to postgresql server running on windows, i have error "SSPI continuation error: SSPI error 80090318" how to reproduce via pg utils: -install pg command tools (in the example I used the postgresql-10.22-1-windows.exe installation) -go to pg installation directory and run psql.exe: wine cmd cd c:\program files\postgresql\10\bin c:\program files\postgresql\10\bin>psql.exe -h dc1.es9.loc -U avp@ES9.loc -d postgres 012c:err:winediag:ntlm_check_version ntlm_auth was not found. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution. 012c:err:ntlm:ntlm_LsaApInitializePackage no NTLM support, expect problems 012c:fixme:kerberos:kerberos_SpInitLsaModeContext flags 0x100 not supported psql: SSPI continuation error: SSPI error 80090318 012c:fixme:msvcrt:__clean_type_info_names_internal (1003A65C) stub 012c:fixme:msvcrt:__clean_type_info_names_internal (78E94A54) stub 012c:fixme:msvcrt:__clean_type_info_names_internal (78DF7E14) stub
Debug log of command WINEDEBUG=+netapi32,+kerberos,+secur32,+ntlm wine psql.exe -h dc1.es9.loc -U avp@ES9.LOC in attachment. Native linux version of psql work perfectly: psql -h dc1.es9.loc -U avp@ES9.LOC -d postgres psql (14.11 (Ubuntu 14.11-0ubuntu0.22.04.1), server 13.6) Type "help" for help. postgres=#