mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Remove some uses of raw python-ldap
Part of the work for: https://fedorahosted.org/freeipa/ticket/2660
This commit is contained in:
committed by
Martin Kosek
parent
29a02a3530
commit
982b782777
@@ -22,7 +22,6 @@ from ipaserver.install.plugins.baseupdate import PreUpdate, PostUpdate
|
||||
from ipalib import api, errors
|
||||
from ipapython import ipautil
|
||||
from ipapython.dn import DN, EditableDN
|
||||
import ldap as _ldap
|
||||
|
||||
def entry_to_update(entry):
|
||||
"""
|
||||
@@ -66,9 +65,9 @@ class GenerateUpdateMixin(object):
|
||||
|
||||
# If the old entries don't exist the server has already been updated.
|
||||
try:
|
||||
(definitions_managed_entries, truncated) = ldap.find_entries(
|
||||
searchfilter, ['*'], old_definition_container, _ldap.SCOPE_ONELEVEL, normalize=False
|
||||
)
|
||||
definitions_managed_entries, truncated = ldap.find_entries(
|
||||
searchfilter, ['*'], old_definition_container,
|
||||
ldap.SCOPE_ONELEVEL, normalize=False)
|
||||
except errors.NotFound, e:
|
||||
return (False, update_list)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user