[1904] in Kerberos-V5-bugs
Krb5 Beta 5 defect in src/appl/bsd/kcmd.c
daemon@ATHENA.MIT.EDU (Sean Mullan)
Tue Apr 30 10:13:03 1996
To: krb5-bugs@MIT.EDU
Cc: mullan_s@apollo.hp.com (Sean Mullan), champine@apollo.hp.com
Date: Tue, 30 Apr 1996 10:12:53 -0400
From: Sean Mullan <mullan_s@apollo.hp.com>
Release: Kerberos Version 5 Beta 5
Problem:
If your TGT is expired, rlogin and rsh do not
return an error but instead hang. The call to krb5_get_credentials()
in kcmd.c should set the matching time of the creds structure to
the current time so expired tickets are not fetched from the cache.
Diffs: (kcmd.c)
goto bad2;
}
+ {
+ krb5_timestamp currenttime = 0;
+ (void) krb5_timeofday(bsd_context, ¤ttime);
+ get_cred->times.endtime = currenttime;
+ }
/* Get ticket from credentials cache or kdc */
status = krb5_get_credentials(bsd_context, 0, cc, get_cred, &ret_cred);
krb5_free_creds(bsd_context, get_cred);
************************************************************
Sean Mullan Phone: (508) 436-4129
Hewlett-Packard Co. Internet: mullan_s@apollo.hp.com
300 Apollo Drive Fax: (508) 436-5140
Chelmsford, MA 01824
************************************************************