]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4/dns/dlz: log when falling back to obsolete dns ldb path
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Fri, 20 Jan 2023 00:07:43 +0000 (13:07 +1300)
committerRalph Boehme <slow@samba.org>
Sat, 29 Mar 2025 18:05:29 +0000 (18:05 +0000)
Prior to 4.8 or so, the dlz dns files were kept in samba/private, but
sharing those files is a bit less than private so a new bind-dns
directory was added. As part of that patch set efforts were made to
fallback gracefully to the old locations. But now that silent grace is
causing confusion; the time has come to fallback resentfully.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15288

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Ralph Boehme <slow@samba.org>
source4/dns_server/dlz_bind9.c

index 02de7dae796b1dd0f6c693e67e1213dd9f121fd2..e5c9679835e5ca50637dc35d48192243fafd7619 100644 (file)
@@ -727,6 +727,11 @@ _PUBLIC_ isc_result_t dlz_create(const char *dlzname,
                }
 
                if (!file_exist(state->options.url)) {
+                       dlz_bind9_state->log(ISC_LOG_ERROR,
+                                            "samba_dlz: dlz_create could not find '%s'; "
+                                            "trying old location '%s/dns/sam.ldb' instead",
+                                            state->options.url,
+                                            lpcfg_private_dir(state->lp));
                        state->options.url = talloc_asprintf(state,
                                                             "%s/dns/sam.ldb",
                                                             lpcfg_private_dir(state->lp));