summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-11-20 08:50:04 +0000
committerAndrew Tridgell <tridge@samba.org>2001-11-20 08:50:04 +0000
commit1cbc18ae732671d9a60528f8300ca7609e124d11 (patch)
treec9e71c9cffe264c568f00ff032e3e7a01da4cb2a
parente4fb073af02846309c3efb0675006433052bb1ce (diff)
downloadsamba-1cbc18ae732671d9a60528f8300ca7609e124d11.tar.gz
samba-1cbc18ae732671d9a60528f8300ca7609e124d11.tar.xz
samba-1cbc18ae732671d9a60528f8300ca7609e124d11.zip
add a hook to save the krb5 PAC
-rw-r--r--source/smbd/sesssetup.c8
1 files changed, 8 insertions, 0 deletions
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",