diff options
author | Martin Kosek <mkosek@redhat.com> | 2013-05-22 12:26:55 +0200 |
---|---|---|
committer | Petr Viktorin <pviktori@redhat.com> | 2013-05-22 14:09:31 +0200 |
commit | 0f646d7ac5461d9d959ca71fca3c77f538a6e0ed (patch) | |
tree | e3a1f098f7dfeb6dc49296cbedc92bce0a76ba4d /tests/test_cmdline/test_ipagetkeytab.py | |
parent | 50a04e5ace693dbf07cf7349d34ff8bdfb768a36 (diff) | |
download | freeipa.git-0f646d7ac5461d9d959ca71fca3c77f538a6e0ed.tar.gz freeipa.git-0f646d7ac5461d9d959ca71fca3c77f538a6e0ed.tar.xz freeipa.git-0f646d7ac5461d9d959ca71fca3c77f538a6e0ed.zip |
Handle DIR type CCACHEs in test_cmdline properly
Pass a whole krbV.CCache object to ldap2 connect() method so that
it can properly detect both type and name of a CCAHE. Otherwise
the test fails on systems with default DIR type CCACHE.
Diffstat (limited to 'tests/test_cmdline/test_ipagetkeytab.py')
-rw-r--r-- | tests/test_cmdline/test_ipagetkeytab.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_cmdline/test_ipagetkeytab.py b/tests/test_cmdline/test_ipagetkeytab.py index b894cea4..cb46fd23 100644 --- a/tests/test_cmdline/test_ipagetkeytab.py +++ b/tests/test_cmdline/test_ipagetkeytab.py @@ -46,7 +46,7 @@ def use_keytab(principal, keytab): ccache.init(principal) ccache.init_creds_keytab(keytab=keytab, principal=principal) conn = ldap2(shared_instance=False, ldap_uri=api.env.ldap_uri, base_dn=api.env.basedn) - conn.connect(ccache=ccache.name) + conn.connect(ccache=ccache) conn.disconnect() except krbV.Krb5Error, e: raise StandardError('Unable to bind to LDAP. Error initializing principal %s in %s: %s' % (principal.name, keytab, str(e))) |