]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:kdc: Add NTSTATUS strings to log messages
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Mon, 15 May 2023 23:00:24 +0000 (11:00 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 18 May 2023 01:03:37 +0000 (01:03 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/kdc/pac-glue.c

index f5704bc435443a970dcbba54242e9467afdf2b81..0d22e835b68e5e0e3b1cce3dd68e8a7a09c4ad39 100644 (file)
@@ -1204,7 +1204,8 @@ NTSTATUS samba_kdc_get_user_info_dc(TALLOC_CTX *mem_ctx,
                                                &user_info_dc_out->sids,
                                                &user_info_dc_out->num_sids);
        if (!NT_STATUS_IS_OK(nt_status)) {
-               DBG_ERR("Failed to add asserted identity!\n");
+               DBG_ERR("Failed to add asserted identity: %s\n",
+                       nt_errstr(nt_status));
                return nt_status;
        }
 
@@ -1212,7 +1213,8 @@ NTSTATUS samba_kdc_get_user_info_dc(TALLOC_CTX *mem_ctx,
                                           claims_valid,
                                           user_info_dc_out);
        if (!NT_STATUS_IS_OK(nt_status)) {
-               DBG_ERR("Failed to add Claims Valid!\n");
+               DBG_ERR("Failed to add Claims Valid: %s\n",
+                       nt_errstr(nt_status));
                return nt_status;
        }
 
@@ -1220,7 +1222,8 @@ NTSTATUS samba_kdc_get_user_info_dc(TALLOC_CTX *mem_ctx,
                                              compounded_auth,
                                              user_info_dc_out);
        if (!NT_STATUS_IS_OK(nt_status)) {
-               DBG_ERR("Failed to add Compounded Authentication!\n");
+               DBG_ERR("Failed to add Compounded Authentication: %s\n",
+                       nt_errstr(nt_status));
                return nt_status;
        }
 
@@ -1280,7 +1283,8 @@ NTSTATUS samba_kdc_update_pac_blob(TALLOC_CTX *mem_ctx,
                                              compounded_auth,
                                              user_info_dc);
        if (!NT_STATUS_IS_OK(nt_status)) {
-               DBG_ERR("Failed to add Compounded Authentication!\n");
+               DBG_ERR("Failed to add Compounded Authentication: %s\n",
+                       nt_errstr(nt_status));
                return nt_status;
        }