patch for samba_dlz

Kristján Valur Jónsson kristjan at
Wed Jan 31 13:04:53 UTC 2018

Please see:
This is a proposed fix for defect

In summary, the dlz  fails to work after the named daemon is
"reloaded", which is done by system housekeeping, such as logrotate.

Various parties have reported this, and a useful workaround is to change
such housekeeping scripts to use "restart" instead.  However, that is not a
proper fix (a workaround), since "reload" dlz zones clearly are expected to
support reload.

Note that this patch effectively reverses
but only partially.  The crucial fix in that commit was to use talloc_unlink()
instead of talloc_free() on samdb handle.
Creating the singleton created a different problem, that the dlz became
defunct after the reload.

Kristján Valur Jónsson, RVX

More information about the samba-technical mailing list