]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Copy config entries to the ksu target ccache
authorNalin Dahyabhai <nalin@dahyabhai.net>
Tue, 29 Oct 2013 20:27:20 +0000 (16:27 -0400)
committerGreg Hudson <ghudson@mit.edu>
Fri, 8 Aug 2014 17:02:36 +0000 (13:02 -0400)
When we try to screen out expired creds while reading them from one
ccache to eventually store in another, also keep configuration entries.

ticket: 7986 (new)

src/clients/ksu/ccache.c

index 4693bd4252e14ab9a0e49ea0cfbf70f36f00c7a9..0f9e0427b984d99d748bcf4fa3d496cbcf789c89 100644 (file)
@@ -219,7 +219,8 @@ krb5_error_code krb5_get_nonexp_tkts(context, cc, creds_array)
 
     while (!(retval = krb5_cc_next_cred(context, cc, &cur, &creds))){
 
-        if ((retval = krb5_check_exp(context, creds.times))){
+        if (!krb5_is_config_principal(context, creds.server) &&
+            (retval = krb5_check_exp(context, creds.times))){
             if (retval != KRB5KRB_AP_ERR_TKT_EXPIRED){
                 return retval;
             }