From 442973edc5bffc1e215c22327369f66df7aeec08 Mon Sep 17 00:00:00 2001 From: John Dennis Date: Thu, 28 Jul 2011 14:32:26 -0400 Subject: Clean up existing DN object usage --- ipaserver/ipaldap.py | 7 ------- 1 file changed, 7 deletions(-) (limited to 'ipaserver/ipaldap.py') diff --git a/ipaserver/ipaldap.py b/ipaserver/ipaldap.py index 77f5b289..4de09f1e 100644 --- a/ipaserver/ipaldap.py +++ b/ipaserver/ipaldap.py @@ -709,13 +709,6 @@ class IPAdmin(SimpleLDAPObject): obj = self.schema.get_obj(ldap.schema.AttributeType, attr) return obj and obj.single_value - def normalizeDN(dn): - # not great, but will do until we use a newer version of python-ldap - # that has DN utilities - ary = ldap.explode_dn(dn.lower()) - return ",".join(ary) - normalizeDN = staticmethod(normalizeDN) - def get_dns_sorted_by_length(self, entries, reverse=False): """ Sorts a list of entries [(dn, entry_attrs)] based on their DN. -- cgit