From c32526441668d75a8acf452e55559f00d5b87ba2 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 20 Nov 2001 08:50:04 +0000 Subject: add a hook to save the krb5 PAC (This used to be commit 1cbc18ae732671d9a60528f8300ca7609e124d11) --- source3/smbd/sesssetup.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source3/smbd/sesssetup.c b/source3/smbd/sesssetup.c index c9c91ea71c..b3e9b7be8f 100644 --- a/source3/smbd/sesssetup.c +++ b/source3/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", -- cgit