http://bugs.winehq.org/show_bug.cgi?id=59689 --- Comment #3 from Andrey M <winandfx@gmail.com> --- (In reply to Hans Leidekker from comment #1)
Created attachment 80799 [details] patch
Can you try this patch?
I think it works now. 1) Docker Ubuntu 22.04 container: apt update && apt install -y git build-essential flex bison curl gcc-multilib g++-multilib pkg-config libx11-dev cd ~ git clone --depth 1 https://gitlab.winehq.org/wine/wine.git cd wine git apply /work/secur32.patch ./configure --enable-win64 --without-x --without-freetype make -j12 2) copied newly built dlls/secur32/x86_64-windows/secur32.dll to /home/wine/.local/lib/wine/x86_64-windows/secur32.dll and /home/wine/.wine/drive_c/windows/system32/secur32.dll (wine prefix=/home/wine/.wine) 3) Run $ wine python3.12 -m pip install --break-system-packages pyspnego $ WINEDEBUG=+loaddll,+secur32,+ntlm,+msv1_0 wine python3.12 -c 'from spnego._sspi import SSPIProxy; sspi = SSPIProxy("test@corp.com", "1234", "unspecified", "host")' 4) Logs 00e0:trace:secur32:AcquireCredentialsHandleW (null) L"negotiate" 2 <...> 00e0:trace:secur32:lsa_AcquireCredentialsHandleW (null) L"negotiate" 0x2 <...> 00e0:trace:secur32:nego_SpAcquireCredentialsHandle 0000000000000000, 0x2, <...> 00e0:trace:ntlm:ntlm_SpAcquireCredentialsHandle <null>, 0x2, <...> 00e0:trace:ntlm:ntlm_SpAcquireCredentialsHandle username is L"test@corp.com" 00e0:trace:ntlm:ntlm_SpAcquireCredentialsHandle domain name is (null) -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.