]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:kdc: improve DEBUG messages in samba_wdc_reget_pac2()
authorStefan Metzmacher <metze@samba.org>
Thu, 23 Dec 2021 21:44:10 +0000 (22:44 +0100)
committerJoseph Sutton <jsutton@samba.org>
Mon, 17 Jan 2022 20:55:41 +0000 (20:55 +0000)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Autobuild-User(master): Joseph Sutton <jsutton@samba.org>
Autobuild-Date(master): Mon Jan 17 20:55:41 UTC 2022 on sn-devel-184

source4/kdc/wdc-samba4.c

index 1d50745e6fdae75f76dd769642f82889990b8be7..b54825224a5bb9f30c1e8461a2cbf4cf45993527 100644 (file)
@@ -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;
                }