summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2009-02-02 13:06:36 +0100
committerSteven Danneman <steven.danneman@isilon.com>2009-02-02 09:41:01 -0800
commitaf736923a541df1a37afeb72b8a5652932c4c69c (patch)
treeb21ed9478c0006ba95957069aecc96a12735c7d4 /source3
parentcfc27ece109fcc63016ad58c5f584b5459f57945 (diff)
downloadsamba-af736923a541df1a37afeb72b8a5652932c4c69c.tar.gz
samba-af736923a541df1a37afeb72b8a5652932c4c69c.tar.bz2
samba-af736923a541df1a37afeb72b8a5652932c4c69c.zip
fix for commit d96248a9b46 which broke Heimdal builds
Diffstat (limited to 'source3')
-rw-r--r--source3/libads/kerberos_verify.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/libads/kerberos_verify.c b/source3/libads/kerberos_verify.c
index 4483d2be58..ec897ada2a 100644
--- a/source3/libads/kerberos_verify.c
+++ b/source3/libads/kerberos_verify.c
@@ -72,9 +72,15 @@ static bool ads_dedicated_keytab_verify_ticket(krb5_context context,
}
/* Get the key for checking the pac signature */
+#ifdef HAVE_ETYPE_IN_ENCRYPTEDDATA /* Heimdal */
+ ret = krb5_kt_get_entry(context, keytab, dec_ticket->server,
+ dec_ticket.enc_part.kvno, dec_ticket.enc_part.etype,
+ &kt_entry);
+#else /* MIT */
ret = krb5_kt_get_entry(context, keytab, dec_ticket->server,
dec_ticket->enc_part.kvno, dec_ticket->enc_part.enctype,
&kt_entry);
+#endif
if (ret) {
DEBUG(0, ("krb5_kt_get_entry failed (%s)\n",
error_message(ret)));