[Samba] Samba 4.7.4 + bind9 DLZ /backend/ dropping delegated domain

Kristján Valur Jónsson kristjan at rvx.is
Tue Jan 30 11:24:42 UTC 2018


Right, that is the _workaround_.  It'd be great to see that documented in
the Wiki.
However, samba_dlz is supposed to support reload, and there has been work
on that file to fix slow reload previously.
I"m currently doing experiments to figure out what is going wrong.

One thing is clear, the messages from samba_dlz is confusing, since it is
actually not "shutting down".
Rather, samba_dlz, maintains a reference counted singleton of its state.
What happens during reload is:
1) dlz_create is called.  The refcount is upped, same internal instance
returned to named and* nothing is logged.*
2) dlz_configure() is called.
3) dlz_destroy() is called.  The refcount is decreased (from 2 to 1),
nothing is destroyed, *but it incorrectly logs that it is shutting down!*

Clearly, bind expects to start a new instance of its dlz, initialize it,
and then destroy the old instance.

I am hacking on this to figure out exactly where things fail.

On 30 January 2018 at 10:26, Rowland Penny via samba <samba at lists.samba.org>
wrote:

> On Tue, 30 Jan 2018 11:18:24 +0100
> "L.P.H. van Belle via samba" <samba at lists.samba.org> wrote:
>
> > Hai,
> >
> > Check the content of :
> > /etc/logrotate.d/named
> >
> > If you see
> > postrotate
> >    /etc/init.d/smbd reload > /dev/null
> > endscript
> >
> > Change that to
> > postrotate
> >   if [ -d /run/systemd/system ]; then; systemctl -q is-active named
> > && systemctl reload named; else; /etc/init.d/named reload ; fi';
> > endscript
> >
>
> It is 'reload' that is the problem, you need to use 'restart' instead.
>
> Rowland
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba
>



-- 
Kv,
Kristján Valur Jónsson, RVX


More information about the samba mailing list