diff options
Diffstat (limited to 'source3/libads')
-rw-r--r-- | source3/libads/kerberos_verify.c | 6 |
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))); |