[Pkg-samba-maint] Bug#948671: libsmbclient: mounting a share from Windows XP fails on timeout

Bernhard Übelacker bernhardu at mailbox.org
Sun Jan 12 17:52:23 GMT 2020


Hello Горбешко Богдан,
I am not involved in packaging samba but tried to get
some more details.


Currently smblcient fails with that message:
    $ smbclient --user=testuser --ip-address=127.0.0.1 //testhost/C testtest
    Unable to initialize messaging context
    protocol negotiation failed: NT_STATUS_IO_TIMEOUT

This seems to be due to smbclient sending out a SMB2 tcp message,
which is not responded to by Windows XP.


Therefore you could specify max-protocol at the command line which
fails that way (seems to come from the windows side):
    $ smbclient --user=testuser --ip-address=127.0.0.1 --max-protocol=NT1 //testhost/C testtest
    Unable to initialize messaging context
    protocol negotiation failed: NT_STATUS_INVALID_PARAMETER_MIX


This behaviour started at upstream following commit
and is contained in samba-4.11.0rc1 and later.
    https://git.samba.org/?p=samba.git;a=commitdiff;h=3264b1f317d6c603cc72eb2a150fe244c47aa3ac


Therefore smbclient could be convinced to connect by:
    $ smbclient --user=testuser --ip-address=127.0.0.1 --option='client min protocol = CORE' //testhost/C testtest

Or setting 'client min protocol = CORE' globally
in /etc/samba/smb.conf.


Bug https://bugs.debian.org/941930 seems to
be about the same issue.

Kind regards,
Bernhard



More information about the Pkg-samba-maint mailing list