From: Joseph Sutton Date: Mon, 15 May 2023 23:00:24 +0000 (+1200) Subject: s4:kdc: Add NTSTATUS strings to log messages X-Git-Tag: talloc-2.4.1~639 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9ff7d6c5c55ff562afbda7b4329c59c83d2933cf;p=thirdparty%2Fsamba.git s4:kdc: Add NTSTATUS strings to log messages Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/source4/kdc/pac-glue.c b/source4/kdc/pac-glue.c index f5704bc4354..0d22e835b68 100644 --- a/source4/kdc/pac-glue.c +++ b/source4/kdc/pac-glue.c @@ -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; }