From b96f562888e3e7733e449a922920158e84e0a933 Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Mon, 18 Aug 2014 15:10:00 -0400 Subject: [PATCH] Add test case for randkey mkvno update ticket: 7994 --- src/tests/t_mkey.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/tests/t_mkey.py b/src/tests/t_mkey.py index 5c90dad9b7..477044e443 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 -- 2.47.2