diff --git a/source4/dsdb/kcc/kcc_periodic.c b/source4/dsdb/kcc/kcc_periodic.c index 4af8b85983a..df38f00e776 100644 --- a/source4/dsdb/kcc/kcc_periodic.c +++ b/source4/dsdb/kcc/kcc_periodic.c @@ -740,9 +740,13 @@ static void kccsrv_periodic_run(struct kccsrv_service *service) mem_ctx = talloc_new(service); - if (service->samba_kcc_code) + if (service->samba_kcc_code) { status = kccsrv_samba_kcc(service); - else { + if (!NT_STATUS_IS_OK(status)) { + DBG_ERR("kccsrv_samba_kcc failed - %s\n", + nt_errstr(status)); + } + } else { status = kccsrv_simple_update(service, mem_ctx); if (!NT_STATUS_IS_OK(status)) DEBUG(0,("kccsrv_simple_update failed - %s\n",