diff options
author | Greg Hudson <ghudson@mit.edu> | 2012-06-22 12:48:26 -0400 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2012-07-02 02:24:14 -0400 |
commit | 8651f3339ccc5a623172a8edfb9cf522883acacd (patch) | |
tree | cdf246a41a1480d474d2fb09bfcefa9166d58641 /src/appl | |
parent | 68092d23093c646c03ccfefc07f8ae8984b32ba2 (diff) | |
download | krb5-8651f3339ccc5a623172a8edfb9cf522883acacd.tar.gz krb5-8651f3339ccc5a623172a8edfb9cf522883acacd.tar.xz krb5-8651f3339ccc5a623172a8edfb9cf522883acacd.zip |
Add client keytab initiation support
Support acquiring GSSAPI krb5 credentials by fetching initial
credentials using the client keytab. Credentials obtained this way
will be stored in the default ccache or collection, and will be
refreshed when they are halfway to expiring.
ticket: 7189 (new)
Diffstat (limited to 'src/appl')
-rw-r--r-- | src/appl/gss-sample/t_gss_sample.py | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/src/appl/gss-sample/t_gss_sample.py b/src/appl/gss-sample/t_gss_sample.py index cfac43d85c..211da97c0d 100644 --- a/src/appl/gss-sample/t_gss_sample.py +++ b/src/appl/gss-sample/t_gss_sample.py @@ -61,11 +61,17 @@ def tgs_test(realm, options): # Perform a test of the server and client with initial credentials # obtained through gss_acquire_cred_with_password(). -def as_test(realm, options): +def pw_test(realm, options): os.remove(realm.ccache) server_client_test(realm, options + ['-user', realm.user_princ, '-pass', password('user')]) +# Perform a test of the server and client with initial credentials +# obtained with the client keytab +def kt_test(realm, options): + os.remove(realm.ccache) + server_client_test(realm, options) + for realm in multipass_realms(): ccache_save(realm) @@ -75,10 +81,15 @@ for realm in multipass_realms(): # test default (i.e., krb5) mechanism with GSS_C_DCE_STYLE tgs_test(realm, ['-dce']) - as_test(realm, ['-krb5']) - as_test(realm, ['-spnego']) - as_test(realm, ['-iakerb']) - # test default (i.e., krb5) mechanism with GSS_C_DCE_STYLE - as_test(realm, ['-dce']) + pw_test(realm, ['-krb5']) + pw_test(realm, ['-spnego']) + pw_test(realm, ['-iakerb']) + pw_test(realm, ['-dce']) + + realm.extract_keytab(realm.user_princ, realm.client_keytab) + kt_test(realm, ['-krb5']) + kt_test(realm, ['-spnego']) + kt_test(realm, ['-iakerb']) + kt_test(realm, ['-dce']) success('GSS sample application') |