From 600a91bb901774c1852a061e30343f64000d8204 Mon Sep 17 00:00:00 2001 From: Paul Park Date: Thu, 27 Apr 1995 21:08:20 +0000 Subject: [PATCH] Set all appropriate data in database entry when changing password git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5581 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kadmin/v5server/ChangeLog | 5 +++++ src/kadmin/v5server/passwd.c | 11 +++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/kadmin/v5server/ChangeLog b/src/kadmin/v5server/ChangeLog index 79cb2f5f3..35ec51958 100644 --- a/src/kadmin/v5server/ChangeLog +++ b/src/kadmin/v5server/ChangeLog @@ -1,4 +1,9 @@ +Thu Apr 27 17:05:54 EDT 1995 Paul Park (pjpark@mit.edu) + + Update last_pwd_change, mod_name and kvno when changing password + successfully. + Wed Apr 26 16:00:00 EDT 1995 Paul Park (pjpark@mit.edu) Add new administrative protocol server which only responds to diff --git a/src/kadmin/v5server/passwd.c b/src/kadmin/v5server/passwd.c index 0dea07da1..9013c3d84 100644 --- a/src/kadmin/v5server/passwd.c +++ b/src/kadmin/v5server/passwd.c @@ -277,10 +277,17 @@ passwd_set_npass(kcontext, debug_level, princ, dbentp, pwdata) &entry2write.alt_key)) goto cleanup; - /* Set the time */ - if (kret = krb5_timeofday(kcontext, &entry2write.mod_date)) + /* Set the time for last successful password change */ + if (kret = krb5_timeofday(kcontext, &entry2write.last_pwd_change)) goto cleanup; + /* Set entry modifier and modification time. */ + entry2write.mod_name = princ; + entry2write.mod_date = entry2write.last_pwd_change; + + /* Update the kvno */ + entry2write.kvno++; + /* Salt? */ /* Now write the entry */ -- 2.26.2