mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-08-12 05:55:08 -05:00
ldap: Add connection management to LDAPClient
Reviewed-By: Petr Viktorin <pviktori@redhat.com>
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user