Created attachment 15573 [details] Stack trace that shows when the error message is printed While debugging a printing issue in GNOME Control Center, I encountered the following error message in the system log: smb1cli_req_writev_submit: called for dialect[SMB2_10] server[abc.xyz] I am attaching the relevant stack trace to this bug report. It appears that the issue is related to the following lines: https://gitlab.com/samba-team/samba/blob/master/source3/libsmb/libsmb_dir.c#L858-863 The protocol version is checked only against the one specified in the configuration file and not against the one that was negotiated during the session. So, when contacting a SMB2-only server, if the client supports NT1, that will be tried as well, leading to the error message. This problem is similar to the one described in bug 14152 apparently.
Ah - completely correct. We missed this one in libsmbclient. I'll prepare a fix.
Created attachment 15577 [details] git-am fix for master. Fix I've submitted as a merge request.
You may want to take a look at bug 14176 as well, it is related to the same code region and is masked by this bug. It's the bug I was actually looking for.
Created attachment 15589 [details] git-am fix for 4.11.next, 4.10.next. Cherry-picked from master.
Comment on attachment 15589 [details] git-am fix for 4.11.next, 4.10.next. Andreas, can you RB+ this one ? It's required before I can back-port the bug fix for: BUG: https://bugzilla.samba.org/show_bug.cgi?id=14176 which has already gone into master. Thanks ! Jeremy.
Karolin, could you please apply the patches to the relevant branches? Thanks!
(In reply to Andreas Schneider from comment #6) Pushed to autobuild-v4-{11,10}-test.
(In reply to Karolin Seeger from comment #7) Pushed to both branches. Closing out bug report. Thanks!