From 78bcc22c406ce8c7a06c1b8c5b6270f745118abc Mon Sep 17 00:00:00 2001 From: Kevin McCarthy Date: Fri, 7 Sep 2007 11:07:59 -0700 Subject: small release fixes: - Make password not required for add person - Fix for searching on '*' or '' --- ipa-server/ipa-gui/ipagui/forms/user.py | 4 ++-- ipa-server/xmlrpc-server/funcs.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'ipa-server') diff --git a/ipa-server/ipa-gui/ipagui/forms/user.py b/ipa-server/ipa-gui/ipagui/forms/user.py index 334e61379..078e06ddd 100644 --- a/ipa-server/ipa-gui/ipagui/forms/user.py +++ b/ipa-server/ipa-gui/ipagui/forms/user.py @@ -26,8 +26,8 @@ class UserFields(): class UserNewValidator(validators.Schema): uid = validators.PlainText(not_empty=True) - userpassword = validators.String(not_empty=True) - userpassword_confirm = validators.String(not_empty=True) + userpassword = validators.String(not_empty=False) + userpassword_confirm = validators.String(not_empty=False) givenname = validators.String(not_empty=True) sn = validators.String(not_empty=True) mail = validators.Email(not_empty=True) diff --git a/ipa-server/xmlrpc-server/funcs.py b/ipa-server/xmlrpc-server/funcs.py index 294b5b5f7..66fabf4be 100644 --- a/ipa-server/xmlrpc-server/funcs.py +++ b/ipa-server/xmlrpc-server/funcs.py @@ -426,7 +426,7 @@ class IPAServer: criteria_words = re.split(r'\s+', criteria) criteria_words = filter(lambda value:value!="", criteria_words) if len(criteria_words) == 0: - return [] + return [0] (exact_match_filter, partial_match_filter) = self.__generate_match_filters( search_fields, criteria_words) -- cgit