]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Test that kinit -k -i picks the intended principal 123/head
authorBen Kaduk <kaduk@mit.edu>
Mon, 19 May 2014 20:38:42 +0000 (16:38 -0400)
committerBen Kaduk <kaduk@mit.edu>
Thu, 22 May 2014 21:33:39 +0000 (17:33 -0400)
Prior to ticket 7892 it would use the default host/ principal
when no principal was given on the command line.

ticket: 7892

src/tests/t_keytab.py

index 3008911ecf9a295310b46fcb1dc2ee7e2521419f..8e2cd23f653c9f97054fd8eeb46f291bf64dffce 100644 (file)
@@ -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'])