$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;
}
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"));
}
}
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),
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"));
}
}
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"));
}
}
/* 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) {
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) {
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++) {