diff options
author | Martin Basti <mbasti@redhat.com> | 2015-11-19 13:25:49 +0100 |
---|---|---|
committer | Jan Cholasta <jcholast@redhat.com> | 2015-11-19 16:43:52 +0100 |
commit | 7f0d018c66da1fe2adedd45aa9f5a63c913e4527 (patch) | |
tree | 630c0b848697b50dd92f32c78f3d54da7bad7dd5 /ipaserver/plugins/ldap2.py | |
parent | 4d59a711af2b5b5e3441116f6d18d54ec9eccfb8 (diff) | |
download | freeipa-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>
Diffstat (limited to 'ipaserver/plugins/ldap2.py')
-rw-r--r-- | ipaserver/plugins/ldap2.py | 2 |
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 |