]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
dsdb periodic: Produce a debugging message if kccsrv_samba_kcc() fails
authorJo Sutton <josutton@catalyst.net.nz>
Tue, 30 Jul 2024 01:53:57 +0000 (13:53 +1200)
committerDouglas Bagnall <dbagnall@samba.org>
Sun, 4 Aug 2024 00:32:39 +0000 (00:32 +0000)
Signed-off-by: Jo Sutton <josutton@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
source4/dsdb/kcc/kcc_periodic.c

index 4af8b85983a323dca33c83272af075474dccfb43..df38f00e776319af7ccf9767a35796c58a598910 100644 (file)
@@ -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",