summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Basti <mbasti@redhat.com>2015-11-19 13:25:49 +0100
committerJan Cholasta <jcholast@redhat.com>2015-11-19 16:43:52 +0100
commit7f0d018c66da1fe2adedd45aa9f5a63c913e4527 (patch)
tree630c0b848697b50dd92f32c78f3d54da7bad7dd5
parent4d59a711af2b5b5e3441116f6d18d54ec9eccfb8 (diff)
downloadfreeipa-7f0d018c66da1fe2adedd45aa9f5a63c913e4527.tar.gz
freeipa-7f0d018c66da1fe2adedd45aa9f5a63c913e4527.tar.xz
freeipa-7f0d018c66da1fe2adedd45aa9f5a63c913e4527.zip
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 <jcholast@redhat.com>
-rw-r--r--ipaserver/plugins/ldap2.py2
1 files changed, 1 insertions, 1 deletions
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