From: Jo Sutton Date: Tue, 30 Jul 2024 01:53:57 +0000 (+1200) Subject: dsdb periodic: Produce a debugging message if kccsrv_samba_kcc() fails X-Git-Tag: tdb-1.4.12~27 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=18b078a8b96afc648c733d60f7b1e3f11ad885c3;p=thirdparty%2Fsamba.git dsdb periodic: Produce a debugging message if kccsrv_samba_kcc() fails Signed-off-by: Jo Sutton Reviewed-by: Douglas Bagnall --- 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",