From ef44e67d78dab13dd741d808a3617f1def40f481 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Wed, 1 Sep 1999 21:53:38 +0000 Subject: [PATCH] use KRB5_TC_SUPPORTED_KTYPES git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11778 dc483132-0cff-0310-8789-dd5450dbe970 --- src/clients/ksu/ChangeLog | 6 ++++++ src/clients/ksu/heuristic.c | 2 +- src/clients/ksu/krb_auth_su.c | 10 ++++++---- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/src/clients/ksu/ChangeLog b/src/clients/ksu/ChangeLog index 44dc8989d..620e14d14 100644 --- a/src/clients/ksu/ChangeLog +++ b/src/clients/ksu/ChangeLog @@ -1,3 +1,9 @@ +1999-08-23 Ken Raeburn + + * heuristic.c (find_ticket): Use flag KRB5_TC_SUPPORTED_KTYPES + when calling krb5_cc_retrieve_cred. + * krb_auth_su.c (krb5_auth_check, krb5_fast_auth): Ditto. + Fri Mar 12 18:52:18 1999 Tom Yu * main.c (main): Fix cleanup code for setluid() failure. diff --git a/src/clients/ksu/heuristic.c b/src/clients/ksu/heuristic.c index 40858fb3a..a8a180090 100644 --- a/src/clients/ksu/heuristic.c +++ b/src/clients/ksu/heuristic.c @@ -451,7 +451,7 @@ krb5_error_code find_ticket (context, cc, client, server, found) if (retval= krb5_copy_principal(context, server, &tgtq.server)) return retval ; - retval = krb5_cc_retrieve_cred(context, cc, KRB5_TC_MATCH_SRV_NAMEONLY, + retval = krb5_cc_retrieve_cred(context, cc, KRB5_TC_MATCH_SRV_NAMEONLY | KRB5_TC_SUPPORTED_KTYPES, &tgtq, &tgt); if (! retval) retval = krb5_check_exp(context, tgt.times); diff --git a/src/clients/ksu/krb_auth_su.c b/src/clients/ksu/krb_auth_su.c index e5a489f91..fb0f547fb 100644 --- a/src/clients/ksu/krb_auth_su.c +++ b/src/clients/ksu/krb_auth_su.c @@ -125,8 +125,9 @@ krb5_boolean zero_password; } if (auth_debug){ dump_principal(context, "local tgt principal name", tgtq.server ); } - retval = krb5_cc_retrieve_cred(context, cc, KRB5_TC_MATCH_SRV_NAMEONLY, - &tgtq, &tgt); + retval = krb5_cc_retrieve_cred(context, cc, + KRB5_TC_MATCH_SRV_NAMEONLY | KRB5_TC_SUPPORTED_KTYPES, + &tgtq, &tgt); if (! retval) retval = krb5_check_exp(context, tgt.times); @@ -260,8 +261,9 @@ krb5_error_code retval; return (FALSE) ; } - if ((retval = krb5_cc_retrieve_cred(context, cc, KRB5_TC_MATCH_SRV_NAMEONLY, - &tgtq, &tgt))){ + if ((retval = krb5_cc_retrieve_cred(context, cc, + KRB5_TC_MATCH_SRV_NAMEONLY | KRB5_TC_SUPPORTED_KTYPES, + &tgtq, &tgt))){ if (auth_debug) com_err(prog_name, retval,"While Retrieving credentials"); return (FALSE) ; -- 2.26.2