Remove support for DN normalization from LDAPClient.

This commit is contained in:
Jan Cholasta
2013-02-04 11:50:58 +01:00
committed by Martin Kosek
parent 5b2e0e2ba5
commit 61c0938c76
9 changed files with 41 additions and 85 deletions

View File

@@ -67,7 +67,7 @@ class GenerateUpdateMixin(object):
try:
definitions_managed_entries, truncated = ldap.find_entries(
searchfilter, ['*'], old_definition_container,
ldap.SCOPE_ONELEVEL, normalize=False)
ldap.SCOPE_ONELEVEL)
except errors.NotFound, e:
return (False, update_list)
@@ -77,7 +77,7 @@ class GenerateUpdateMixin(object):
old_dn = entry.data['managedtemplate'][0]
assert isinstance(old_dn, DN)
try:
(old_dn, entry) = ldap.get_entry(old_dn, ['*'], normalize=False)
(old_dn, entry) = ldap.get_entry(old_dn, ['*'])
except errors.NotFound, e:
pass
else: