From 0858b7546eebf9e853e4e7288b50edbcdcdc5826 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 16 Sep 2010 09:31:10 +0200 Subject: s3: Add the PAC info3 struct to the netsamlogon_cache in ntlm_auth --- source3/utils/ntlm_auth.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source3/utils') diff --git a/source3/utils/ntlm_auth.c b/source3/utils/ntlm_auth.c index e2f9c60deb..f8145b4a6d 100644 --- a/source3/utils/ntlm_auth.c +++ b/source3/utils/ntlm_auth.c @@ -34,6 +34,7 @@ #include "../lib/crypto/arcfour.h" #include "libads/kerberos_proto.h" #include "nsswitch/winbind_client.h" +#include "librpc/gen_ndr/krb5pac.h" #ifndef PAM_WINBIND_CONFIG_FILE #define PAM_WINBIND_CONFIG_FILE "/etc/security/pam_winbind.conf" @@ -1456,6 +1457,9 @@ static void manage_gss_spnego_request(struct ntlm_auth_state *state, domain = SMB_STRDUP(domain); user = SMB_STRDUP(principal); + netsamlogon_cache_store( + user, &logon_info->info3); + data_blob_free(&ap_rep); } -- cgit