mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-27 00:26:33 -06:00
find_entries param
Fixes a bug where find_entries was not passed a parameter for filter. Instead of fixing the call point, this patch adds a defaulty value for the parameter, so that they can all be passed by name.
This commit is contained in:
parent
88c88d9504
commit
b4655f1119
@ -489,7 +489,7 @@ class ldap2(CrudBackend, Encoder):
|
||||
|
||||
@encode_args(1, 2, 3)
|
||||
@decode_retval()
|
||||
def find_entries(self, filter, attrs_list=None, base_dn='',
|
||||
def find_entries(self, filter=None, attrs_list=None, base_dn='',
|
||||
scope=_ldap.SCOPE_SUBTREE, time_limit=None, size_limit=None,
|
||||
normalize=True):
|
||||
"""
|
||||
@ -578,8 +578,6 @@ class ldap2(CrudBackend, Encoder):
|
||||
)[0][0]
|
||||
except errors.NotFound:
|
||||
config_entry = {}
|
||||
except Exception, e:
|
||||
raise e
|
||||
for a in self.config_defaults:
|
||||
if a not in config_entry:
|
||||
config_entry[a] = self.config_defaults[a]
|
||||
|
Loading…
Reference in New Issue
Block a user