From: Stefan Metzmacher Date: Thu, 23 Dec 2021 21:44:10 +0000 (+0100) Subject: s4:kdc: improve DEBUG messages in samba_wdc_reget_pac2() X-Git-Tag: tdb-1.4.6~73 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=19d9504b1b34ec7c52eaaf663d5ecf4f05066b6d;p=thirdparty%2Fsamba.git s4:kdc: improve DEBUG messages in samba_wdc_reget_pac2() Signed-off-by: Stefan Metzmacher Reviewed-by: Joseph Sutton Autobuild-User(master): Joseph Sutton Autobuild-Date(master): Mon Jan 17 20:55:41 UTC 2022 on sn-devel-184 --- diff --git a/source4/kdc/wdc-samba4.c b/source4/kdc/wdc-samba4.c index 1d50745e6fd..b54825224a5 100644 --- a/source4/kdc/wdc-samba4.c +++ b/source4/kdc/wdc-samba4.c @@ -253,8 +253,8 @@ static krb5_error_code samba_wdc_reget_pac2(krb5_context context, delegated_proxy_principal, deleg_blob); if (!NT_STATUS_IS_OK(nt_status)) { - DEBUG(0, ("Building PAC failed: %s\n", - nt_errstr(nt_status))); + DBG_ERR("samba_kdc_update_delegation_info_blob() failed: %s\n", + nt_errstr(nt_status)); talloc_free(mem_ctx); return EINVAL; } @@ -278,6 +278,8 @@ static krb5_error_code samba_wdc_reget_pac2(krb5_context context, &user_info_dc); if (!NT_STATUS_IS_OK(nt_status)) { talloc_free(mem_ctx); + DBG_ERR("samba_kdc_get_pac_blobs() failed: %s\n", + nt_errstr(nt_status)); return KRB5KDC_ERR_TGT_REVOKED; } @@ -313,8 +315,8 @@ static krb5_error_code samba_wdc_reget_pac2(krb5_context context, *pac, pac_blob, NULL, NULL); if (!NT_STATUS_IS_OK(nt_status)) { - DEBUG(0, ("Building PAC failed: %s\n", - nt_errstr(nt_status))); + DBG_ERR("samba_kdc_update_pac_blob() failed: %s\n", + nt_errstr(nt_status)); talloc_free(mem_ctx); return EINVAL; }