[Samba] Missing deprecations from CHANGELOG 4.14
rpenny at samba.org
Tue Aug 3 14:07:51 UTC 2021
On Tue, 2021-08-03 at 15:16 +0200, Matthias Kühne | Ellerhold AG via
> Hello Rowland,
> Im still tracking down this bug and I've set up a brand new VM.
> Using the standard debian samba package (4.9.5) my script can
> successfully send files to a Mac OS SMB-Server without any smb.conf
> at all.
> After the upgrade to Louis' 4.13 (2:4.13.10+dfsg-0.1buster1) this
Any chance of seeing your script ?
> Ive changed my smb.conf to
> ntlm auth = ntlmv1-permitted
> client min protocol = NT1
> and tried it again: It works again (as expected)!
> Upgrading to 4.14 (2:4.14.6+dfsg-0.1buster1) and my script fails
> Using `smbclient` instead of `libsmbclient` via the php-module works
> So something must've changed between 4.13.10 and 4.14.6 in
> libsmbclient ...
smbclient doesn't require the smb.conf and deprecated doesn't mean
'removed'. It takes quite some time before Samba removes deprecated
parameters, 'years' comes to mind.
> Additionally I tried to use PHPs 'smbclient_client_protocols()' to
> SMB1 connections. Turns out this function is not available. Looking
> (line 75+) it seems like the libsmbclient is missing the
> 'smbc_setOptionProtocols', so the PHP Module doesnt publish the
> 'smbclient_client_protocols()' function.
That has been part of Samba since Sep 2018, could the libsmbclient that
libsmbclient-php uses require updating ?
> Im using Ondrej Sury PHP Repository for debian and opened a bug
> Turns out neither the standard debian 4.9, nor Louis 4.13 nor Louis
> version of libsmbclient has this function compiled in. Im 90% sure,
> this is a separate thing because 4.9 and 4.13 worked while lacking
It should be compiled in, because it is part of Samba. I think what
wasn't updated was the libsmbclient manpage, it appears that there is
an option not listed in the manpage 'min_proto'. Have a look here:
More information about the samba