summaryrefslogtreecommitdiffstats
path: root/ipaserver/ipaldap.py
diff options
context:
space:
mode:
authorPetr Viktorin <pviktori@redhat.com>2013-01-23 04:45:13 -0500
committerMartin Kosek <mkosek@redhat.com>2013-03-01 16:59:45 +0100
commitaaa41b21457ed1ea593845ac05f1e72cfe83ab7f (patch)
treef550f01228e15b64c214cc4a26d899346ba56188 /ipaserver/ipaldap.py
parenta173957865ecbbf85260ecee99a3c86f7b9fde0c (diff)
downloadfreeipa.git-aaa41b21457ed1ea593845ac05f1e72cfe83ab7f.tar.gz
freeipa.git-aaa41b21457ed1ea593845ac05f1e72cfe83ab7f.tar.xz
freeipa.git-aaa41b21457ed1ea593845ac05f1e72cfe83ab7f.zip
Rename LDAPConnection to LDAPClient
It does more than just connecting, so it should have more suitable name. Part of the work for: https://fedorahosted.org/freeipa/ticket/2660
Diffstat (limited to 'ipaserver/ipaldap.py')
-rw-r--r--ipaserver/ipaldap.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/ipaserver/ipaldap.py b/ipaserver/ipaldap.py
index 05205808..c5ae6eee 100644
--- a/ipaserver/ipaldap.py
+++ b/ipaserver/ipaldap.py
@@ -740,7 +740,7 @@ class LDAPEntry(dict):
return result
-class LDAPConnection(object):
+class LDAPClient(object):
"""LDAP backend class
This class abstracts a LDAP connection, providing methods that work with
@@ -887,7 +887,7 @@ class LDAPConnection(object):
return obj and obj.single_value
def normalize_dn(self, dn):
- """Override to normalize all DNs passed to LDAPConnection methods"""
+ """Override to normalize all DNs passed to LDAPClient methods"""
assert isinstance(dn, DN)
return dn
@@ -1528,7 +1528,7 @@ class LDAPConnection(object):
self.conn.delete_s(dn)
-class IPAdmin(LDAPConnection):
+class IPAdmin(LDAPClient):
def __get_ldap_uri(self, protocol):
if protocol == 'ldaps':
@@ -1579,7 +1579,7 @@ class IPAdmin(LDAPConnection):
ldap_uri = self.__get_ldap_uri(protocol or self.__guess_protocol())
- LDAPConnection.__init__(self, ldap_uri)
+ LDAPClient.__init__(self, ldap_uri)
self.conn = IPASimpleLDAPObject(ldap_uri, force_schema_updates=True)