From 1cbc18ae732671d9a60528f8300ca7609e124d11 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 20 Nov 2001 08:50:04 +0000 Subject: [PATCH] add a hook to save the krb5 PAC --- source/smbd/sesssetup.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/smbd/sesssetup.c b/source/smbd/sesssetup.c index c9c91ea71c8..b3e9b7be8f0 100644 --- a/source/smbd/sesssetup.c +++ b/source/smbd/sesssetup.c @@ -85,6 +85,14 @@ static int reply_spnego_kerberos(connection_struct *conn, return ERROR_NT(NT_STATUS_LOGON_FAILURE); } +#if 0 + if (tkt->enc_part2) { + file_save("/tmp/authdata.dat", + tkt->enc_part2->authorization_data[0]->contents, + tkt->enc_part2->authorization_data[0]->length); + } +#endif + if ((ret = krb5_unparse_name(context, tkt->enc_part2->client, &client))) { DEBUG(3,("krb5_unparse_name failed (%s)\n",