smbclient //192.168.178.1/share1 fails on SMB1 resource

Bug #1873561 reported by Dirk Heumann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
samba (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

$ smbclient --user=ftpuser //192.168.178.1/share1
protocol negotiation failed: NT_STATUS_CONNECTION_DISCONNECTED

Remvark, with SMB2 resources, the command runs O.K.

Remark: "I also coult not mount the SMB1 drives with "gio mount smb:", what works easily with SMB2 drives.

I will attach the log files of the same command with --debuglevel=10 for Ubuntu 20.04 (beta) and Ubuntu 19.04.

1) Release
$ lsb_release -rd
Description: Ubuntu 20.04 LTS
Release: 20.04

2) Package
$ apt-cache policy smbclient
smbclient:
  Installed: 2:4.11.6+dfsg-0ubuntu1
  Candidate: 2:4.11.6+dfsg-0ubuntu1
  Version table:
 *** 2:4.11.6+dfsg-0ubuntu1 500
 500 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages
        100 /var/lib/dpkg/status

3) What should happen:
$ smbclient --user=userName1 //192.168.178.1/share1
Enter WORKGROUP\username1's password:
smb: \> l # ← "l" = command within smbclient
...
smb: \> # ← End session with ctrl-d

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: smbclient 2:4.11.6+dfsg-0ubuntu1
ProcVersionSignature: Ubuntu 5.4.0-24.28-generic 5.4.30
Uname: Linux 5.4.0-24-generic x86_64
ApportVersion: 2.20.11-0ubuntu27
Architecture: amd64
CasperMD5CheckResult: skip
CurrentDesktop: XFCE
Date: Sat Apr 18 14:06:10 2020
InstallationDate: Installed on 2019-02-17 (426 days ago)
InstallationMedia: Ubuntu 18.10 "Cosmic Cuttlefish" - Release amd64 (20181017.3)
SambaClientRegression: Yes
SourcePackage: samba
UpgradeStatus: Upgraded to focal on 2020-04-05 (13 days ago)

Revision history for this message
Dirk Heumann (dirk-heumann) wrote :
Revision history for this message
Dirk Heumann (dirk-heumann) wrote :
Revision history for this message
Dirk Heumann (dirk-heumann) wrote :
Revision history for this message
Stefan Metzmacher (metze) wrote :

This is expected, see https://www.samba.org/samba/history/samba-4.11.0.html

You need "client min protocol = NT1" in smb.conf or use
--option="client min protocol = NT1" on the commandline.

Revision history for this message
Dirk Heumann (dirk-heumann) wrote :

Thanks a lot

smbclient --user=userName1 --option='client min protocol=nt1' //192.168.178.1/share1

worked ('NT1' = 'nt1' is non case sensitive).

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Closing as invalid as this is the expected behavior with the current version.

Changed in samba (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.