diff options
author | Jan Cholasta <jcholast@redhat.com> | 2015-01-20 12:36:14 +0000 |
---|---|---|
committer | Jan Cholasta <jcholast@redhat.com> | 2015-04-16 06:58:31 +0000 |
commit | e2b0981d608e0421d90e3568f89b2ab799aa5c60 (patch) | |
tree | f11f1293d1559c83cd7e2c26c2d0e1638253cbd9 /ipapython | |
parent | db88498c956a608ab09168ecd70ec7d4d755d0b2 (diff) | |
download | freeipa-e2b0981d608e0421d90e3568f89b2ab799aa5c60.tar.gz freeipa-e2b0981d608e0421d90e3568f89b2ab799aa5c60.tar.xz freeipa-e2b0981d608e0421d90e3568f89b2ab799aa5c60.zip |
ldap: Use SimpleLDAPObject instead of IPASimpleLDAPObject in LDAPClient
Reviewed-By: Petr Viktorin <pviktori@redhat.com>
Diffstat (limited to 'ipapython')
-rw-r--r-- | ipapython/ipaldap.py | 4 |
1 files changed, 2 insertions, 2 deletions
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() |