From 7f0d018c66da1fe2adedd45aa9f5a63c913e4527 Mon Sep 17 00:00:00 2001 From: Martin Basti Date: Thu, 19 Nov 2015 13:25:49 +0100 Subject: [PATCH] fix caching in get_ipa_config Different opbject types were compared thus always result of comparation was False and caching does not work. https://fedorahosted.org/freeipa/ticket/5463 Reviewed-By: Jan Cholasta --- ipaserver/plugins/ldap2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipaserver/plugins/ldap2.py b/ipaserver/plugins/ldap2.py index ca11efd5e..4cdc56166 100644 --- a/ipaserver/plugins/ldap2.py +++ b/ipaserver/plugins/ldap2.py @@ -208,7 +208,7 @@ class ldap2(CrudBackend, LDAPClient): try: config_entry = getattr(context, 'config_entry') - if config_entry.conn is self.conn: + if config_entry.conn.conn is self.conn: return config_entry except AttributeError: # Not in our context yet