krb5 commit [krb5-1.13]: Add test case for randkey mkvno update

Tom Yu tlyu at mit.edu
Fri Aug 22 15:24:09 EDT 2014


https://github.com/krb5/krb5/commit/0a6fe13208b13b33ada02f18958e0bb6f722409b
commit 0a6fe13208b13b33ada02f18958e0bb6f722409b
Author: Greg Hudson <ghudson at mit.edu>
Date:   Mon Aug 18 15:10:00 2014 -0400

    Add test case for randkey mkvno update
    
    (cherry picked from commit b96f562888e3e7733e449a922920158e84e0a933)
    
    ticket: 7994
    version_fixed: 1.13
    status: resolved

 src/tests/t_mkey.py |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/tests/t_mkey.py b/src/tests/t_mkey.py
index 5c90dad..477044e 100644
--- a/src/tests/t_mkey.py
+++ b/src/tests/t_mkey.py
@@ -279,6 +279,12 @@ update_princ_encryption(False, 3, nprincs - 1, 0)
 check_mkey_list((3, aes128, True, True), (2, defetype, True, False))
 check_mkvno(realm.user_princ, 3)
 
+# Regression test for #7994 (randkey does not update principal mkvno).
+add_mkey([])
+realm.run([kdb5_util, 'use_mkey', '4', 'now-1day'])
+realm.run_kadminl('cpw -randkey %s' % realm.user_princ)
+check_mkvno(realm.user_princ, 4)
+
 realm.stop()
 
 # Load a dump file created with krb5 1.6, before the master key


More information about the cvs-krb5 mailing list