mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-11-02 20:30:26 -06:00
ldap: Use SimpleLDAPObject instead of IPASimpleLDAPObject in LDAPClient
Reviewed-By: Petr Viktorin <pviktori@redhat.com>
This commit is contained in:
1 parent
db88498c95
commit
e2b0981d60
1 file changed
+2
-2
@@ -830,7 +830,7 @@ class LDAPClient(object):
|
||||
if not self._has_schema:
|
||||
try:
|
||||
schema = schema_cache.get_schema(
|
||||
self.conn.uri, self.conn.conn,
|
||||
self.ldap_uri, self.conn,
|
||||
force_update=self._force_schema_updates)
|
||||
except (errors.ExecutionError, IndexError):
|
||||
schema = None
|
||||
@@ -1137,7 +1137,7 @@ class LDAPClient(object):
|
||||
with self.error_handler():
|
||||
# bypass ldap2's locking
|
||||
object.__setattr__(self, '_conn',
|
||||
IPASimpleLDAPObject(self.ldap_uri))
|
||||
ldap.initialize(self.ldap_uri))
|
||||
|
||||
if self._start_tls:
|
||||
self._conn.start_tls_s()
|
||||
|
||||
Reference in new issue
Block a user