mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-10-13 17:02:02 -05:00
small release fixes:
- Make password not required for add person - Fix for searching on '*' or ''
This commit is contained in:
1 parent
c821699b64
commit
78bcc22c40
2 files changed
+3
-3
No files matched your search
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user