From: Ben Kaduk Date: Mon, 19 May 2014 20:38:42 +0000 (-0400) Subject: Test that kinit -k -i picks the intended principal X-Git-Tag: krb5-1.13-alpha1~131 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F123%2Fhead;p=thirdparty%2Fkrb5.git 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 --- diff --git a/src/tests/t_keytab.py b/src/tests/t_keytab.py index 3008911ecf..8e2cd23f65 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'])