Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#941930: smbclient: protocol negotiation failed: NT_STATUS_INVALID_PARAMETER_MIX with maxprotocol=NT1

151 views
Skip to first unread message

luca

unread,
Oct 7, 2019, 1:20:03 PM10/7/19
to
Package: smbclient
Version: 2:4.11.0+dfsg-10
Severity: normal

Dear Maintainer,

after update in testing of samba pkgs version 2:4.11.0+dfsg-10 maxprotocol=NT1
seems no more working as aspected

----------------------------------------------------------------------
$ smbclient \\\\192.168.0.101\\tmp
Unable to initialize messaging context
Enter BDEV\ilprof's password:
Try "help" to get a list of possible commands.
smb: \>
----------------------------------------------------------------------

but with maxprotocol=NT1

----------------------------------------------------------------------
$ smbclient \\\\192.168.0.101\\tmp -m NT1
Unable to initialize messaging context
protocol negotiation failed: NT_STATUS_INVALID_PARAMETER_MIX
----------------------------------------------------------------------




-- System Information:
Debian Release: bullseye/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.15.0-3-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8), LANGUAGE= (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages smbclient depends on:
ii dpkg 1.19.7
ii libarchive13 3.4.0-1
ii libbsd0 0.10.0-1
ii libc6 2.29-2
ii libgnutls30 3.6.9-5
ii libpopt0 1.16-12
ii libreadline8 8.0-3
ii libsmbclient 2:4.11.0+dfsg-10
ii libtalloc2 2.3.0-2
ii libtevent0 0.10.1-3
ii libwbclient0 2:4.11.0+dfsg-10
ii samba-common 2:4.11.0+dfsg-10
ii samba-libs 2:4.11.0+dfsg-10

smbclient recommends no packages.

Versions of packages smbclient suggests:
ii cifs-utils 2:6.9-1
pn heimdal-clients <none>

-- no debconf information

Bernhard Übelacker

unread,
Jan 12, 2020, 1:10:03 PM1/12/20
to
Hello luca,
this bug might be related: https://bugs.debian.org/948671

Kind regards,
Bernhard

Michael Tokarev

unread,
Oct 25, 2022, 11:50:03 AM10/25/22
to
Control: tag -1 + confirmed upstream
Control: found -1 2:4.17.2+dfsg-1
Control: found -1 2:4.16.6+dfsg-2

On Mon, 07 Oct 2019 19:13:12 +0200 luca <ago...@gmail.com> wrote:
> Package: smbclient
> Version: 2:4.11.0+dfsg-10
> Severity: normal
>
> Dear Maintainer,
>
> after update in testing of samba pkgs version 2:4.11.0+dfsg-10 maxprotocol=NT1
> seems no more working as aspected
>
> ----------------------------------------------------------------------
> $ smbclient \\\\192.168.0.101\\tmp
> Unable to initialize messaging context
> Enter BDEV\ilprof's password:
> Try "help" to get a list of possible commands.
> smb: \>
> ----------------------------------------------------------------------
>
> but with maxprotocol=NT1
>
> ----------------------------------------------------------------------
> $ smbclient \\\\192.168.0.101\\tmp -m NT1
> Unable to initialize messaging context
> protocol negotiation failed: NT_STATUS_INVALID_PARAMETER_MIX
> ----------------------------------------------------------------------

This seems to be a problem with command-line parameter parsing of smbclient,
or parameter logic.

In man smb.conf, there's "client min protocol" parameter, which is SMB2_02
in current version (4.16) of samba. And smbclient has its own option,
-m, or --max-protocol, which is used here.

It looks like smbclient *might* error out at least in case min protocol is
larger than the specified max protocol. Or better yet, fix min protocol to
be the same as max protocol in this case (unless it is explicitly set in
the smb.conf file).

In order for smbclient to actually use NT1 protocol, one have to also specify
"client min prococol = NT1" - either in smb.conf or in additional --option
command-line option.

I dunno why upstream did it this way - either by design, or it wasn't intended
to be this way.

Let's ask upstream..

/mjt
0 new messages