Comment 11 for bug 1893906

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

Get it to read modified [gobal] sections:

1. drop the "comment=" of the testshare in smb.conf
2. in smb.conf set in the global directive
   comment = Test bug 1893906 - smb.conf
3. Modify the test includes that they look like:
[global]
   comment = Test bug 1893906 - g1
include = /etc/samba/test1b.conf

I found that in this case the re-definition of [global] needs happen before a section that uses it. (No reverse propagation of configuration). Due to that the includes have to move up.

4. move the includes up above the [testshare] section

$ smbclient -L 127.0.0.1 -U ubuntu%ubuntu | grep testshare
 testshare Disk Test bug 1893906 - smb.conf

So we can see that it ignored the new default-comment in that case.

From here moving up the includes for the global just before [testshare] makes it work
$ smbclient -L 127.0.0.1 -U ubuntu%ubuntu | grep testshare
 testshare Disk Test bug 1893906 - g3

But with that we surely know that /etc/samba/test3.conf is read (for the comment).
So let us set the "client min protocol" there - and indeed it's value is not considered as if it would be in the initial [global] section.

It is parsed thou, if I set an invalid value for client min protocol in test3.conf it fails to restart the server.