diff options
author | Adam Young <ayoung@redhat.com> | 2010-10-25 14:18:47 -0400 |
---|---|---|
committer | Adam Young <ayoung@redhat.com> | 2010-10-25 15:21:44 -0400 |
commit | b4655f11197475c46f0aae029e18acffee027e71 (patch) | |
tree | 447ea8c6ab401b81bdfb3497f35896dcaf536cd9 | |
parent | 88c88d95048f608b9b97b1591a76b126f6dd9872 (diff) | |
download | freeipa-b4655f11197475c46f0aae029e18acffee027e71.tar.gz freeipa-b4655f11197475c46f0aae029e18acffee027e71.tar.xz freeipa-b4655f11197475c46f0aae029e18acffee027e71.zip |
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.
-rw-r--r-- | ipaserver/plugins/ldap2.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ipaserver/plugins/ldap2.py b/ipaserver/plugins/ldap2.py index 12005c01f..05292ce7c 100644 --- a/ipaserver/plugins/ldap2.py +++ b/ipaserver/plugins/ldap2.py @@ -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] |