From 776d901ff769a1be0681331a4b98234af38e3398 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 1 Mar 2016 13:55:03 +0100 Subject: [PATCH] SCRATCH --- source3/auth/auth_generic.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/source3/auth/auth_generic.c b/source3/auth/auth_generic.c index 74eb2fa..4aaa694 100644 --- a/source3/auth/auth_generic.c +++ b/source3/auth/auth_generic.c @@ -89,6 +89,17 @@ static NTSTATUS auth3_generate_session_info_pac(struct auth4_context *auth_ctx, } } + /* save the PAC data if we have it */ + if (logon_info) { + status = create_info3_from_pac_logon_info(tmp_ctx, + logon_info, + &info3_copy); + if (!NT_STATUS_IS_OK(status)) { + goto done; + } + netsamlogon_cache_store(ntuser, info3_copy); + } + status = get_user_from_kerberos_info(tmp_ctx, rhost, princ_name, logon_info, &is_mapped, &is_guest, @@ -101,17 +112,6 @@ static NTSTATUS auth3_generate_session_info_pac(struct auth4_context *auth_ctx, goto done; } - /* save the PAC data if we have it */ - if (logon_info) { - status = create_info3_from_pac_logon_info(tmp_ctx, - logon_info, - &info3_copy); - if (!NT_STATUS_IS_OK(status)) { - goto done; - } - netsamlogon_cache_store(ntuser, info3_copy); - } - /* setup the string used by %U */ sub_set_smb_name(username); -- 1.7.9.5