2007-07-26 19:06:51 +00:00
|
|
|
Sadique Puthen notes that the warning on the client side seems to be correspond
|
2007-09-04 16:34:44 +00:00
|
|
|
to the wrong attribute on the KDC. Do what RFC4120 says we should do.
|
2007-07-26 19:06:51 +00:00
|
|
|
--- krb5-1.6.2/src/kdc/do_as_req.c 2007-06-25 15:49:06.000000000 -0400
|
|
|
|
+++ krb5-1.6.2/src/kdc/do_as_req.c 2007-06-25 15:49:08.000000000 -0400
|
2007-09-04 16:34:44 +00:00
|
|
|
@@ -371,7 +371,14 @@ process_as_req(krb5_kdc_req *request, kr
|
2007-07-26 19:06:51 +00:00
|
|
|
goto errout;
|
|
|
|
}
|
|
|
|
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 {
|
|
|
|
+ reply_encpart.key_exp = client.pw_expiration < client.expiration ?;
|
|
|
|
+ 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;
|
|
|
|
|