Comment 12 for bug 1893906

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Seeing the above I got the idea that maybe the server properly does include parsing (e.g. for comment of a share) but the clients might not.
"client min protocol" is a client value, let us try "server max protocol" instead.

/etc/samba/test3.conf
[global]
   server max protocol = NT1
   comment = Test bug 1893906 - g3

And yeah, the server side config "server max protocol" has an effect even if in the last config file of the chain. Could it really be that the server includes everything, but the client doesn't?

Most of the configurations are for the server, I picked another one that is more client-like.
   client signing = mandatory
If added to [global] in smb.conf I can clearly see it's effects.
If added to any (or all) of the include files it does nothing.

With that in mind let us focus on that for a minute:
$ strace -rTt -f -o smbclient.strace smbclient -L 127.0.0.1 -U ubuntu%ubuntu

$ grep -e 'samba\/smb\.conf' -e 'test.*\.conf' smbclient.strace
4815 09:52:37 (+ 0.000102) stat("/etc/samba/smb.conf", {st_mode=S_IFREG|0644, st_size=9245, ...}) = 0 <0.000011>
4815 09:52:37 (+ 0.000046) openat(AT_FDCWD, "/etc/samba/smb.conf", O_RDONLY) = 3 <0.000011>

No reading of any of the extra include config files by the client -- hmm suspicious at least