[PATCH] Fix for bug 10882
Rowland Penny
repenny241155 at gmail.com
Tue Jul 19 07:42:10 UTC 2016
On 17/06/16 13:20, Rowland Penny wrote:
> Hi, this patch fixes bug 10882.
>
> If you use Bind on a DC and somehow the 'dns-<DCNAME>' user gets
> deleted, samba_upgradedns cannot recreate it, unless you 'upgrade' to
> the internal DNS first.
>
> The reason for this is quite simple, the script searches in
> secrets.ldb for the user and most likely it will be the user in
> sam.ldb that will have been deleted.
>
> The patch moves the deletion of the user in secrets.ldb & sam.ldb to
> before the Bind9_DLZ code, this means that if the user exists in
> either .ldb, it will be deleted.
>
> If you run the script with '--dns-backend=BIND9_DLZ', the user will be
> created in both locations.
>
> If you run the script with '--dns-backend=SAMBA_INTERNAL', the user
> does not need to exist, so will not be created.
>
> I have tested this patch, I deleted the dns user with samba-tool, then
> ran 'samba_upgradedns --dns-backend=BIND9_DLZ', I then checked and the
> dns user existed in secrets.ldb & sam.ldb.
>
> Rowland
>
ping, anybody got time to look at this ?
Rowland
More information about the samba-technical
mailing list