[26394] in CVS-changelog-for-Kerberos-V5

home help back first fref pref prev next nref lref last post

svn rev #25730: trunk/src/lib/krb5/krb/

daemon@ATHENA.MIT.EDU (ghudson@mit.edu)
Mon Mar 5 12:35:17 2012

Date: Mon, 5 Mar 2012 12:35:14 -0500
From: ghudson@mit.edu
Message-Id: <201203051735.q25HZEMU031662@drugstore.mit.edu>
To: cvs-krb5@mit.edu
Reply-To: krbdev@mit.edu
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cvs-krb5-bounces@mit.edu

http://src.mit.edu/fisheye/changelog/krb5/?cs=25730
Commit By: ghudson
Log Message:
ticket: 7098
subject: Fix spurious password expiry warning
target_version: 1.9.4
tags: pullup

r24241 (#6755) introduced a bug where if the KDC sends a LastReq entry
containing an account expiry time, we send a prompter warning for
password expiry even if there was no entry containing a password
expiry time.  Typically, this results in the message "Warning: Your
password will expire in less than one hour on Thu Jan  1 12:00:00
1970".

Fix this by explicitly checking for pw_exp == 0 in warn_pw_expiry()
after we've gotten past the conditional for invoking the callback.


Changed Files:
U   trunk/src/lib/krb5/krb/gic_pwd.c
Modified: trunk/src/lib/krb5/krb/gic_pwd.c
===================================================================
--- trunk/src/lib/krb5/krb/gic_pwd.c	2012-03-04 00:38:48 UTC (rev 25729)
+++ trunk/src/lib/krb5/krb/gic_pwd.c	2012-03-05 17:35:14 UTC (rev 25730)
@@ -168,6 +168,10 @@
         return;
     }
 
+    /* Don't warn if no password expiry value was sent. */
+    if (pw_exp == 0)
+        return;
+
     /* Don't warn if the password is being changed. */
     if (in_tkt_service && strcmp(in_tkt_service, "kadmin/changepw") == 0)
         return;

_______________________________________________
cvs-krb5 mailing list
cvs-krb5@mit.edu
https://mailman.mit.edu/mailman/listinfo/cvs-krb5

home help back first fref pref prev next nref lref last post