Remove unused LDAPClient methods get_syntax and get_single_value.

https://fedorahosted.org/freeipa/ticket/3488
This commit is contained in:
Jan Cholasta 2013-12-10 11:48:23 +01:00 committed by Petr Viktorin
parent 61887ac392
commit aa66cd5f35

View File

@ -1231,15 +1231,6 @@ class LDAPClient(object):
"""schema associated with this LDAP server""" """schema associated with this LDAP server"""
return self.conn.schema 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): def has_dn_syntax(self, attr):
return self.conn.has_dn_syntax(attr) return self.conn.has_dn_syntax(attr)
@ -1256,9 +1247,6 @@ class LDAPClient(object):
reason=_('objectclass %s not found') % oc) reason=_('objectclass %s not found') % oc)
return [unicode(a).lower() for a in list(set(allowed_attributes))] 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): def make_dn_from_attr(self, attr, value, parent_dn=None):
""" """
Make distinguished name from attribute. Make distinguished name from attribute.