https://bugs.winehq.org/show_bug.cgi?id=35965
Bug ID: 35965 Summary: secur32/{negotiate,ntlm} tests fail with samba/winbind 4 Product: Wine Version: 1.7.16 Hardware: x86 OS: Linux Status: NEW Keywords: download, source Severity: normal Priority: P2 Component: secur32 Assignee: wine-bugs@winehq.org Reporter: austinenglish@gmail.com
Created attachment 48067 --> https://bugs.winehq.org/attachment.cgi?id=48067 smb.conf
I've noticed that these two tests fail on Fedora 20 64-bit, and at first assumed that it was a missing 32-bit ntlm_auth: https://bugzilla.redhat.com/show_bug.cgi?id=968860
but looking into it further, it looks like wine isn't compatible with samba4.
To test this, I tried in my debian 7 (wheezy) VM, which has both samba versions available.
$ sudo apt-get -y install winbind $ cd ~/wine-git/dlls/secur32/tests $ rm *ok ; make test
works
$ sudo apt-get -y install winbind4 $ cd ~/wine-git/dlls/secur32/tests $ rm *ok ; make test
fails very quickly. Some of the default entries from samba3 are not valid in samba4. With a minimalized smb.conf (attached), I was able to get rid of the warnings from samba4, but the tests still fail (and pass with samba3).
https://bugs.winehq.org/show_bug.cgi?id=35965
--- Comment #1 from Austin English austinenglish@gmail.com --- Created attachment 48068 --> https://bugs.winehq.org/attachment.cgi?id=48068 test output on debian wheezy 32-bit with winbind4
https://bugs.winehq.org/show_bug.cgi?id=35965
--- Comment #2 from Austin English austinenglish@gmail.com --- Created attachment 48069 --> https://bugs.winehq.org/attachment.cgi?id=48069 secur32 failures on f19
Trying it on a f19 vm with that same smb.conf, I see different failures (no crash though): ../../../tools/runtest -q -P wine -T ../../.. -M secur32.dll -p secur32_test.exe.so negotiate && touch negotiate.ok p11-kit: couldn't load module: /usr/lib/pkcs11/p11-kit-trust.so: /usr/lib/pkcs11/p11-kit-trust.so: cannot open shared object file: No such file or directory p11-kit: couldn't load module: /usr/lib/pkcs11/gnome-keyring-pkcs11.so: /usr/lib/pkcs11/gnome-keyring-pkcs11.so: cannot open shared object file: No such file or directory fixme:secur32:nego_AcquireCredentialsHandleW forwarding to NTLM fixme:secur32:nego_AcquireCredentialsHandleW forwarding to NTLM could not obtain winbind domain name! could not obtain winbind netbios name! could not obtain winbind domain name! negotiate.c:295: Test failed: server returned 80090304, more tests will fail make: *** [negotiate.ok] Error 1
https://bugs.winehq.org/show_bug.cgi?id=35965
--- Comment #3 from Hans Leidekker hans@meelstraat.net --- Can you attach a +ntlm,+secur32 trace from running the negotiate test with samba3?
https://bugs.winehq.org/show_bug.cgi?id=35965
--- Comment #4 from Austin English austinenglish@gmail.com --- Created attachment 48070 --> https://bugs.winehq.org/attachment.cgi?id=48070 ntlk,secur32 - winbind3
https://bugs.winehq.org/show_bug.cgi?id=35965
--- Comment #5 from Austin English austinenglish@gmail.com --- Created attachment 48071 --> https://bugs.winehq.org/attachment.cgi?id=48071 ntlm,secur32 - winbind4
https://bugs.winehq.org/show_bug.cgi?id=35965
--- Comment #6 from Bruno Jesus 00cpxxx@gmail.com --- Looks ugly: ntlm_auth: /usr/lib/i386-linux-gnu/libwbclient.so.0: no version information available (required by /usr/lib/i386-linux-gnu/samba/libauth4.so) Unable to setup messaging listener for '/var/lib/samba/private/smbd.tmp/msg/msg.4249.2603467321':NT_STATUS_ACCESS_DENIED
https://bugs.winehq.org/show_bug.cgi?id=35965
--- Comment #7 from Austin English austinenglish@gmail.com --- Created attachment 48079 --> https://bugs.winehq.org/attachment.cgi?id=48079 make test output on f20
https://bugs.winehq.org/show_bug.cgi?id=35965
Dmitry Timoshkov dmitry@baikal.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #48067|text/x-c |text/plain mime type| |
https://bugs.winehq.org/show_bug.cgi?id=35965
--- Comment #8 from Dmitry Timoshkov dmitry@baikal.ru --- It looks like in order to have ntlm_auth from samba4 working one needs to setup a fully configured samba config, and default configuration (smb.conf) doesn't work.
https://bugs.winehq.org/show_bug.cgi?id=35965
--- Comment #9 from Dmitry Timoshkov dmitry@baikal.ru --- (In reply to Dmitry Timoshkov from comment #8)
It looks like in order to have ntlm_auth from samba4 working one needs to setup a fully configured samba config, and default configuration (smb.conf) doesn't work.
Although http://wiki.winehq.org/NtlmAuthSetupGuide claims that client mode doesn't require a working samba configuration.
https://bugs.winehq.org/show_bug.cgi?id=35965
Dmitry Timoshkov dmitry@baikal.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #48070|ntlk,secur32 - winbind3 |ntlm,secur32 - winbind3 description| |
https://bugs.winehq.org/show_bug.cgi?id=35965
--- Comment #10 from Dmitry Timoshkov dmitry@baikal.ru --- I sent a patch which fixes secur32/negotiate.c failures for me (ntlm_auth reports "Version 4.0.16"), but in the log Austin attached failure message is different: http://www.winehq.org/pipermail/wine-patches/2014-April/131789.html
https://bugs.winehq.org/show_bug.cgi?id=35965
--- Comment #11 from Austin English austinenglish@gmail.com --- (In reply to Dmitry Timoshkov from comment #10)
I sent a patch which fixes secur32/negotiate.c failures for me (ntlm_auth reports "Version 4.0.16"), but in the log Austin attached failure message is different: http://www.winehq.org/pipermail/wine-patches/2014-April/131789.html
Works on Fedora for me, thanks. I'll test that debian vm on Monday (unless I spin one up before then).
https://bugs.winehq.org/show_bug.cgi?id=35965
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |8df047987012ff290a789911692 | |a23d9a248dc56 Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #12 from Austin English austinenglish@gmail.com --- Fixed by https://source.winehq.org/git/wine.git/commitdiff/8df047987012ff290a78991169..., thanks Dmitry
https://bugs.winehq.org/show_bug.cgi?id=35965
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #13 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.7.17.