debug dnsupdate
authorStefan Metzmacher <metze@samba.org>
Tue, 29 Jan 2019 07:57:05 +0000 (08:57 +0100)
committerStefan Metzmacher <metze@samba.org>
Wed, 30 Jan 2019 08:35:19 +0000 (09:35 +0100)
selftest/target/Samba4.pm
source4/dsdb/dns/dns_update.c

index b662776a84708dba1db72048c7d979111624a0c9..d78cb1f163cb95e8344de0b278cdc041ea98489b 100755 (executable)
@@ -626,10 +626,10 @@ sub provision_raw_prepare($$$$$$$$$$$$)
        $ctx->{nsswrap_hostname} = "$ctx->{hostname}.$ctx->{dnsname}";
        if ($ENV{SAMBA_DNS_FAKING}) {
                $ctx->{dns_host_file} = "$ENV{SELFTEST_PREFIX}/dns_host_file";
-               $ctx->{samba_dnsupdate} = "$ENV{SRCDIR_ABS}/source4/scripting/bin/samba_dnsupdate -s $ctx->{smb_conf} --all-interfaces --use-file=$ctx->{dns_host_file}";
+               $ctx->{samba_dnsupdate} = "$ENV{SRCDIR_ABS}/source4/scripting/bin/samba_dnsupdate -s $ctx->{smb_conf} --all-interfaces --verbose --use-file=$ctx->{dns_host_file}";
                $ctx->{samba_dnsupdate} = $python_cmd .  $ctx->{samba_dnsupdate};
        } else {
-               $ctx->{samba_dnsupdate} = "$ENV{SRCDIR_ABS}/source4/scripting/bin/samba_dnsupdate -s $ctx->{smb_conf} --all-interfaces";
+               $ctx->{samba_dnsupdate} = "$ENV{SRCDIR_ABS}/source4/scripting/bin/samba_dnsupdate -s $ctx->{smb_conf} --all-interfaces --verbose";
                $ctx->{samba_dnsupdate} = $python_cmd .  $ctx->{samba_dnsupdate};
                $ctx->{use_resolv_wrapper} = 1;
        }
index 0a1f0ac2330df77e73714694321ce0626e2a3d01..44e92c85c07b02cdb3cbc8d5a5a4b754f5dc54e2 100644 (file)
@@ -90,7 +90,7 @@ static void dnsupdate_rndc_done(struct tevent_req *subreq)
                DEBUG(0,(__location__ ": Failed rndc update - %s\n",
                         nt_errstr(service->confupdate.status)));
        } else {
-               DEBUG(3,("Completed rndc reload OK\n"));
+               DEBUG(0,("Completed rndc reload OK\n"));
        }
 }
 
@@ -267,7 +267,7 @@ static void dnsupdate_rebuild(struct dnsupdate_service *service)
                return;
        }
 
-       DEBUG(2,("Loading new DNS update grant rules\n"));
+       DEBUG(0,("Loading new DNS update grant rules\n"));
        service->confupdate.subreq = samba_runcmd_send(service,
                                                       service->task->event_ctx,
                                                       timeval_current_ofs(10, 0),
@@ -330,7 +330,7 @@ static void dnsupdate_nameupdate_done(struct tevent_req *subreq)
                DBG_ERR("Failed DNS update with exit code %d\n",
                        sys_errno);
        } else {
-               DEBUG(3,("Completed DNS update check OK\n"));
+               DEBUG(0,("Completed DNS update check OK\n"));
        }
 }
 
@@ -353,7 +353,7 @@ static void dnsupdate_spnupdate_done(struct tevent_req *subreq)
                DEBUG(0,(__location__ ": Failed SPN update - with error code %d\n",
                         sys_errno));
        } else {
-               DEBUG(3,("Completed SPN update check OK\n"));
+               DEBUG(0,("Completed SPN update check OK\n"));
        }
 }
 
@@ -368,11 +368,11 @@ static void dnsupdate_check_names(struct dnsupdate_service *service)
        /* kill any existing child */
        TALLOC_FREE(service->nameupdate.subreq);
 
-       DEBUG(3,("Calling DNS name update script\n"));
+       DEBUG(0,("Calling DNS name update script\n"));
        service->nameupdate.subreq = samba_runcmd_send(service,
                                                       service->task->event_ctx,
                                                       timeval_current_ofs(20, 0),
-                                                      2, 0,
+                                                      0, 0,
                                                       dns_update_command,
                                                       NULL);
        if (service->nameupdate.subreq == NULL) {
@@ -383,11 +383,11 @@ static void dnsupdate_check_names(struct dnsupdate_service *service)
                                dnsupdate_nameupdate_done,
                                service);
 
-       DEBUG(3,("Calling SPN name update script\n"));
+       DEBUG(0,("Calling SPN name update script\n"));
        service->nameupdate.spnreq = samba_runcmd_send(service,
                                                       service->task->event_ctx,
                                                       timeval_current_ofs(20, 0),
-                                                      2, 0,
+                                                      0, 0,
                                                       spn_update_command,
                                                       NULL);
        if (service->nameupdate.spnreq == NULL) {
@@ -459,10 +459,10 @@ static void dnsupdate_RODC_callback(struct tevent_req *req)
        talloc_free(req);
        if (ret != 0) {
                st->r->out.result = map_nt_error_from_unix_common(sys_errno);
-               DEBUG(2,(__location__ ": RODC DNS Update failed: %s\n", nt_errstr(st->r->out.result)));
+               DEBUG(0,(__location__ ": RODC DNS Update failed: %s\n", nt_errstr(st->r->out.result)));
        } else {
                st->r->out.result = NT_STATUS_OK;
-               DEBUG(3,(__location__ ": RODC DNS Update OK\n"));
+               DEBUG(0,(__location__ ": RODC DNS Update OK\n"));
        }
 
        for (i=0; i<st->r->in.dns_names->count; i++) {