From e2b0981d608e0421d90e3568f89b2ab799aa5c60 Mon Sep 17 00:00:00 2001 From: Jan Cholasta Date: Tue, 20 Jan 2015 12:36:14 +0000 Subject: ldap: Use SimpleLDAPObject instead of IPASimpleLDAPObject in LDAPClient Reviewed-By: Petr Viktorin --- ipapython/ipaldap.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ipapython') diff --git a/ipapython/ipaldap.py b/ipapython/ipaldap.py index a562dd44b..5bf4aa603 100644 --- a/ipapython/ipaldap.py +++ b/ipapython/ipaldap.py @@ -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() -- cgit