summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Cholasta <jcholast@redhat.com>2013-12-10 11:48:23 +0100
committerPetr Viktorin <pviktori@redhat.com>2014-01-10 14:41:39 +0100
commitaa66cd5f35bc0d5e857d9bb4d6b294ee582bfd22 (patch)
tree3c2cc342d78e38af17c459a42ce368a34f7eb31b
parent61887ac3929ac3bd5135867f31ad414a547327c9 (diff)
downloadfreeipa-aa66cd5f35bc0d5e857d9bb4d6b294ee582bfd22.tar.gz
freeipa-aa66cd5f35bc0d5e857d9bb4d6b294ee582bfd22.tar.xz
freeipa-aa66cd5f35bc0d5e857d9bb4d6b294ee582bfd22.zip
Remove unused LDAPClient methods get_syntax and get_single_value.
https://fedorahosted.org/freeipa/ticket/3488
-rw-r--r--ipapython/ipaldap.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/ipapython/ipaldap.py b/ipapython/ipaldap.py
index c553feac..2440d75f 100644
--- a/ipapython/ipaldap.py
+++ b/ipapython/ipaldap.py
@@ -1231,15 +1231,6 @@ class LDAPClient(object):
"""schema associated with this LDAP server"""
return self.conn.schema
- def get_syntax(self, attr, value):
- if self.schema is None:
- return None
- obj = self.schema.get_obj(ldap.schema.AttributeType, attr)
- if obj is not None:
- return obj.syntax
- else:
- return None
-
def has_dn_syntax(self, attr):
return self.conn.has_dn_syntax(attr)
@@ -1256,9 +1247,6 @@ class LDAPClient(object):
reason=_('objectclass %s not found') % oc)
return [unicode(a).lower() for a in list(set(allowed_attributes))]
- def get_single_value(self, attr):
- return self.conn.get_single_value(attr)
-
def make_dn_from_attr(self, attr, value, parent_dn=None):
"""
Make distinguished name from attribute.