libsmbclient and SMB3
Jeremy Allison
jra at samba.org
Mon Aug 27 23:06:26 UTC 2018
On Mon, Aug 27, 2018 at 07:08:29PM +0200, Andreas Schneider via samba-technical wrote:
> Hi,
>
> how can you tell libsmbclient to use SMB3 and why doesn libsmbclient default
> to SMB1?
>
>
> ./bin/smbtorture //addc/tmp -UAdministrator --option=torture:smburl="smb://
> earth.milkyway.site" libsmbclient.list_shares
>
>
> fails with the following error:
>
>
> smb1cli_req_writev_submit: called for dialect[SMB3_11]
> server[earth.milkyway.site]
>
> Which is from libcli/smb/smbXcli_base.c +1681
>
> if (state->conn->protocol > PROTOCOL_NT1) {
> return NT_STATUS_REVISION_MISMATCH;
> }
>
>
> smbclient -L //earth.milkyway.site -U Administrator
>
> works just fine.
OK, I'm confused as to what you're expecting here.
libsmbclient uses the "client max protocol"/"client min protocol"
settings in the smb.conf, I think it tries to use the max
protocol selected.
Are you looking for a command line / smburl method of
selecting protocol level ?
More information about the samba-technical
mailing list