[PATCH] Fix configuration reload in s3/loadparm

Volker Lendecke Volker.Lendecke at SerNet.DE
Wed Nov 22 12:21:10 UTC 2017


On Wed, Nov 22, 2017 at 12:46:03PM +0100, Ralph Böhme via samba-technical wrote:
> Attached patchset fixes reloading config in s3/loadparm. This popped up when
> a user went through the following config changes:
> 
> 1. Set [global] smb encrypt = required
> 2. Restart Samba
> 3. Remove the line smb encrypt = required
> 4. smbcontrol smbd reload-config
> 
> Expected result: unencryptd access allowed.
> Actual result: unencryptd access denied.
> 
> Bug: https://bugzilla.samba.org/show_bug.cgi?id=13051
> 
> Took me some time to figure out, that this happens because in s3/loadparm we
> have the defaults in the sDefault struct and any service option appearing in the
> global section modifies it. As we have no copy of the original value, if the
> user removes the config setting and reloads, the original value can't be
> restored and will still be what was initially set. *ouch*
> 
> It looks like we have the same problem in the toplevel loadparm, but afacit all
> the stuff that uses it doesn't support configuration reload, so I'm leaving that
> as is.
> 
> Please review & push if happy. Thanks!

Happy. Pushed. Thanks, Volker

-- 
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de, mailto:kontakt at sernet.de



More information about the samba-technical mailing list