]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:auth: debug make_user_info_dc_pac() failures in kerberos_pac_to_user_info_dc()
authorStefan Metzmacher <metze@samba.org>
Thu, 23 Dec 2021 21:53:13 +0000 (22:53 +0100)
committerJoseph Sutton <jsutton@samba.org>
Mon, 17 Jan 2022 20:05:32 +0000 (20:05 +0000)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Joseph Sutton <josephsutton@catalyst.net.nz>
source4/auth/kerberos/kerberos_pac.c

index 54ef4d61b025b648244739f1d32989de8dd3de8e..dccf165384e26cb651d6344359fa178f5d68cca7 100644 (file)
@@ -300,7 +300,7 @@ krb5_error_code kerberos_pac_to_user_info_dc(TALLOC_CTX *mem_ctx,
 
        union PAC_INFO info;
        union PAC_INFO _upn_dns_info;
-       const struct PAC_UPN_DNS_INFO *upn_dns_info = NULL;
+       struct PAC_UPN_DNS_INFO *upn_dns_info = NULL;
        struct auth_user_info_dc *user_info_dc_out;
 
        TALLOC_CTX *tmp_ctx = talloc_new(mem_ctx);
@@ -369,6 +369,12 @@ krb5_error_code kerberos_pac_to_user_info_dc(TALLOC_CTX *mem_ctx,
                                         upn_dns_info,
                                         &user_info_dc_out);
        if (!NT_STATUS_IS_OK(nt_status)) {
+               DBG_ERR("make_user_info_dc_pac() failed -%s\n",
+                       nt_errstr(nt_status));
+               NDR_PRINT_DEBUG(PAC_LOGON_INFO, info.logon_info.info);
+               if (upn_dns_info != NULL) {
+                       NDR_PRINT_DEBUG(PAC_UPN_DNS_INFO, upn_dns_info);
+               }
                talloc_free(tmp_ctx);
                return EINVAL;
        }