[Samba] Samba protocol version in libsmbclient
jra at samba.org
Wed Jun 11 17:21:22 MDT 2014
On Wed, Jun 11, 2014 at 12:11:39AM +1000, Adam Baxter wrote:
> What determines the protocol version that libsmbclient uses?
> Changing min and max protocol version in the client smb.conf seems to have
> no effect.
> I'm chasing up the performance issues I posted about earlier which may be
> caused by my Linux clients defaulting to SMB1 (via gvfsd-smb) while Windows
> happily negotiates SMB2 with the servers.
> If I restrict the servers to SMB2, gvfs can't connect, while smbclient on
> the console works fine if I pass -mSMB2.
> I can't see anything in
> https://git.gnome.org/browse/gvfs/tree/daemon/gvfsbackendsmb.c that would
> restrict the protocol version, either.
> Any ideas?
Internally the connect uses: lp_cli_maxprotocol() - see
status = smbXcli_negprot(c->conn, c->timeout,
So I think you need to set "client max protocol"
to SMB2 in smb.conf, not "max protocol" (that's
the server max protocol).
More information about the samba