use KRB5_TC_SUPPORTED_KTYPES
authorKen Raeburn <raeburn@mit.edu>
Wed, 1 Sep 1999 21:53:38 +0000 (21:53 +0000)
committerKen Raeburn <raeburn@mit.edu>
Wed, 1 Sep 1999 21:53:38 +0000 (21:53 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11778 dc483132-0cff-0310-8789-dd5450dbe970

src/clients/ksu/ChangeLog
src/clients/ksu/heuristic.c
src/clients/ksu/krb_auth_su.c

index 44dc8989d4c4993cd9c78cc9c0022605a019e263..620e14d145be1e36e83bf6904be5b4fac09fb966 100644 (file)
@@ -1,3 +1,9 @@
+1999-08-23  Ken Raeburn  <raeburn@mit.edu>
+
+       * 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  <tlyu@mit.edu>
 
        * main.c (main): Fix cleanup code for setluid() failure.
index 40858fb3ad684193f56227aefdd233b6303a9141..a8a180090a83a745fc7ffa7d73cf3b8d0ffcf51d 100644 (file)
@@ -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);
index e5a489f911500018d11fa25d76c8ab12c4198d77..fb0f547fb9987fc07e98b11a68eb2c56bc41d267 100644 (file)
@@ -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) ;