From 0f646d7ac5461d9d959ca71fca3c77f538a6e0ed Mon Sep 17 00:00:00 2001 From: Martin Kosek Date: Wed, 22 May 2013 12:26:55 +0200 Subject: 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. --- tests/test_cmdline/cmdline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/test_cmdline/cmdline.py') diff --git a/tests/test_cmdline/cmdline.py b/tests/test_cmdline/cmdline.py index 1df6a7cc..d86652bd 100644 --- a/tests/test_cmdline/cmdline.py +++ b/tests/test_cmdline/cmdline.py @@ -31,7 +31,7 @@ from ipaserver.plugins.ldap2 import ldap2 from ipapython import ipautil # See if our LDAP server is up and we can talk to it over GSSAPI -ccache = krbV.default_context().default_ccache().name +ccache = krbV.default_context().default_ccache() try: conn = ldap2(shared_instance=False, ldap_uri=api.env.ldap_uri, base_dn=api.env.basedn) -- cgit