2007-07-26 19:06:51 +00:00
|
|
|
Sadique Puthen notes that the warning on the client side seems to be correspond
|
2010-08-12 17:47:08 +00:00
|
|
|
to the wrong attribute on the KDC. Do what RFC4120 says we should do.
|
|
|
|
|
|
|
|
RT#5755, which turns out to have been a duplicate of RT#2032.
|
2010-03-05 22:19:38 +00:00
|
|
|
|
|
|
|
diff -up krb5-1.8/src/kdc/do_as_req.c.key_exp krb5-1.8/src/kdc/do_as_req.c
|
|
|
|
--- krb5-1.8/src/kdc/do_as_req.c.key_exp 2010-02-16 17:21:08.000000000 -0500
|
|
|
|
+++ krb5-1.8/src/kdc/do_as_req.c 2010-03-05 11:02:06.000000000 -0500
|
|
|
|
@@ -555,7 +555,14 @@ process_as_req(krb5_kdc_req *request, kr
|
|
|
|
goto errout;
|
2007-07-26 19:06:51 +00:00
|
|
|
}
|
|
|
|
reply_encpart.nonce = request->nonce;
|
|
|
|
- reply_encpart.key_exp = client.expiration;
|
2007-09-04 16:34:44 +00:00
|
|
|
+ if (client.expiration == 0) {
|
|
|
|
+ reply_encpart.key_exp = client.pw_expiration;
|
|
|
|
+ } else if (client.pw_expiration == 0) {
|
|
|
|
+ reply_encpart.key_exp = client.expiration;
|
|
|
|
+ } else {
|
2008-02-12 21:03:29 +00:00
|
|
|
+ reply_encpart.key_exp = client.pw_expiration < client.expiration ?
|
2007-09-04 16:34:44 +00:00
|
|
|
+ client.pw_expiration : client.expiration;
|
|
|
|
+ }
|
2007-07-26 19:06:51 +00:00
|
|
|
reply_encpart.flags = enc_tkt_reply.flags;
|
|
|
|
reply_encpart.server = ticket_reply.server;
|
|
|
|
|