From 18b078a8b96afc648c733d60f7b1e3f11ad885c3 Mon Sep 17 00:00:00 2001 From: Jo Sutton Date: Tue, 30 Jul 2024 13:53:57 +1200 Subject: [PATCH] dsdb periodic: Produce a debugging message if kccsrv_samba_kcc() fails Signed-off-by: Jo Sutton Reviewed-by: Douglas Bagnall --- source4/dsdb/kcc/kcc_periodic.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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", -- 2.47.3