diff options
author | Ben Kaduk <kaduk@mit.edu> | 2014-05-19 16:38:42 -0400 |
---|---|---|
committer | Ben Kaduk <kaduk@mit.edu> | 2014-05-22 17:33:39 -0400 |
commit | 44adf120d8548b9bb43a380e6f1889840c4a4a3d (patch) | |
tree | 03c77e0e4f7779be559eba6eec2a5994f422bf12 /src/tests | |
parent | 6c4bd36bd000c8f5ab1b8dacd5d4101831fe576e (diff) | |
download | krb5-44adf120d8548b9bb43a380e6f1889840c4a4a3d.zip krb5-44adf120d8548b9bb43a380e6f1889840c4a4a3d.tar.gz krb5-44adf120d8548b9bb43a380e6f1889840c4a4a3d.tar.bz2 |
Test that kinit -k -i picks the intended principal
Prior to ticket 7892 it would use the default host/ principal
when no principal was given on the command line.
ticket: 7892
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/t_keytab.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tests/t_keytab.py b/src/tests/t_keytab.py index 3008911..8e2cd23 100644 --- a/src/tests/t_keytab.py +++ b/src/tests/t_keytab.py @@ -20,6 +20,9 @@ if 'no suitable keys' not in output: # Test kinit and klist with client keytab defaults. realm.extract_keytab(realm.user_princ, realm.client_keytab); +realm.run([kinit, '-k', '-i']) +realm.klist(realm.user_princ) +realm.run([kdestroy]) realm.kinit(realm.user_princ, flags=['-k', '-i']) realm.klist(realm.user_princ) out = realm.run([klist, '-k', '-i']) |