diff options
author | Jan Cholasta <jcholast@redhat.com> | 2015-01-26 15:16:01 +0000 |
---|---|---|
committer | Jan Cholasta <jcholast@redhat.com> | 2015-04-16 06:58:31 +0000 |
commit | 02e1ebe07cca92e2ae7ccdd52dd15428716d81bd (patch) | |
tree | c042ccb82f986539e94016bcea7e2989f2a7d54e /ipaserver/plugins/ldap2.py | |
parent | a849bca53fc857aafb2fa6a13558c6da53c72f87 (diff) | |
download | freeipa-02e1ebe07cca92e2ae7ccdd52dd15428716d81bd.tar.gz freeipa-02e1ebe07cca92e2ae7ccdd52dd15428716d81bd.tar.xz freeipa-02e1ebe07cca92e2ae7ccdd52dd15428716d81bd.zip |
ldap: Add connection management to LDAPClient
Reviewed-By: Petr Viktorin <pviktori@redhat.com>
Diffstat (limited to 'ipaserver/plugins/ldap2.py')
-rw-r--r-- | ipaserver/plugins/ldap2.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ipaserver/plugins/ldap2.py b/ipaserver/plugins/ldap2.py index fd4ed2990..267157146 100644 --- a/ipaserver/plugins/ldap2.py +++ b/ipaserver/plugins/ldap2.py @@ -98,11 +98,14 @@ class ldap2(LDAPClient, CrudBackend): except AttributeError: return DN() - def _init_connection(self): + def _connect(self): # Connectible.conn is a proxy to thread-local storage; # do not set it pass + def _disconnect(self): + pass + def __del__(self): if self.isconnected(): self.disconnect() |