smbclient --max-protocol=NT1: why it requres setting MIN protocol too?

Michael Tokarev mjt at tls.msk.ru
Tue Oct 25 15:45:55 UTC 2022


Hi!

When trying to use current smbclient to connect to, say, a windowsXP machine
(which implements only NT1 protocol), smbclient has to be told to use lower
protocol version than it's default - this is intended.

But the thing is that it doesn't work:

   $ smbclient --max-protocol=NT1 //testhost/share
   Unable to initialize messaging context
   protocol negotiation failed: NT_STATUS_INVALID_PARAMETER_MIX

Using -m/--max-protocol=NT1 *also* requires setting another option:

   $ smbclient --max-protocol=NT1 --option='client min protocol = CORE' //testhost/share

This way it actually works.

Can't smbclient either warn about this situation, or better yet,
lower its min protocol automatically if it is greater than
the requested max protocol?

Thanks,

/mjt



More information about the samba-technical mailing list