2017-05-15, 04:46
Try adding the following to $HOME/.smb/smb.conf (not sure where this file well be on Android):
and restart Kodi. This will instruct libsmbclient to negotiate a protocol higher than NT1 (which is basically SMB1) when connecting to your server.
It seems that the default libsmbclient configuration used by Kodi will limit/restrict any negotiated connection to NT1 even when the Samba server supports more recent, secure and performant versions of the SMB protocol. And when NT1/SMB1 is disabled on the server (which is highly recommended, for obvious reasons), Kodi won't be able to connect to the server at all.
On your server you should be able to see the types of connection your Samba clients are establishing by running "sudo smbstatus -b".
Edit: "smbstatus -b" output on an Ubuntu 16.04 server:
192.16.0.6 is a Windows 7 PC, with SMB2_10 connection
192.168.0.12 is a LibreELEC 9 test build with Kodi 18a1 and "client max protocol = SMB3" - established connection is SMB3_11.
(The "Unknown (0x0311)" protocol is fixed in Samba 4.4.0)
Code:
client max protocol = SMB3
It seems that the default libsmbclient configuration used by Kodi will limit/restrict any negotiated connection to NT1 even when the Samba server supports more recent, secure and performant versions of the SMB protocol. And when NT1/SMB1 is disabled on the server (which is highly recommended, for obvious reasons), Kodi won't be able to connect to the server at all.
On your server you should be able to see the types of connection your Samba clients are establishing by running "sudo smbstatus -b".
Edit: "smbstatus -b" output on an Ubuntu 16.04 server:
Code:
neil@nm-linux:~$ sudo smbstatus -b
Samba version 4.3.11-Ubuntu
PID Username Group Machine Protocol Version
------------------------------------------------------------------------------
1801 neil neil 192.168.0.6 (ipv4:192.168.0.6:52229) SMB2_10
2751 neil neil 192.168.0.12 (ipv4:192.168.0.12:55642) Unknown (0x0311)
2714 neil neil 192.168.0.12 (ipv4:192.168.0.12:55590) Unknown (0x0311)
192.168.0.12 is a LibreELEC 9 test build with Kodi 18a1 and "client max protocol = SMB3" - established connection is SMB3_11.
(The "Unknown (0x0311)" protocol is fixed in Samba 4.4.0)