summaryrefslogtreecommitdiffstats
path: root/ipapython
diff options
context:
space:
mode:
authorJan Cholasta <jcholast@redhat.com>2015-01-20 12:36:14 +0000
committerJan Cholasta <jcholast@redhat.com>2015-04-16 06:58:31 +0000
commite2b0981d608e0421d90e3568f89b2ab799aa5c60 (patch)
treef11f1293d1559c83cd7e2c26c2d0e1638253cbd9 /ipapython
parentdb88498c956a608ab09168ecd70ec7d4d755d0b2 (diff)
downloadfreeipa-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.py4
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()