krb5 commit: Add test case for randkey mkvno update

Greg Hudson ghudson at mit.edu
Fri Aug 22 11:09:24 EDT 2014


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

    Add test case for randkey mkvno update
    
    ticket: 7994

 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