[Freeipa-devel] [PATCH] small (but important) fixes for release

Kevin McCarthy kmccarth at redhat.com
Fri Sep 7 18:01:42 UTC 2007


Fixes three issues:
- password isn't mandatory for add person
- fix for searching on '*' (it blew up)
- Change my principal to 'admin' until the correct way is sorted out

-Kevin

-------------- next part --------------
# HG changeset patch
# User Kevin McCarthy <kmccarth at redhat.com>
# Date 1189187990 25200
# Node ID f4520ad4b8a35603fe4533f206a17a71543e6cac
# Parent  31924e58a3c3a0e550d7ebc68c89b03fa1a10f3f
mall release fixes:
- Use admin for principal (temporarily)
- Make password not required for add person
- Fix for searching on '*' or ''

diff -r 31924e58a3c3 -r f4520ad4b8a3 ipa-server/ipa-gui/ipagui/controllers.py
--- a/ipa-server/ipa-gui/ipagui/controllers.py	Thu Sep 06 16:21:07 2007 -0700
+++ b/ipa-server/ipa-gui/ipagui/controllers.py	Fri Sep 07 10:59:50 2007 -0700
@@ -27,7 +27,8 @@ password_chars = "0123456789ABCDEFGHIJKL
 password_chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
 
 client = ipa.ipaclient.IPAClient(True)
-client.set_principal("test at FREEIPA.ORG")
+# client.set_principal("test at FREEIPA.ORG")
+client.set_principal("admin at FREEIPA.ORG")
 
 user_fields = ['*', 'nsAccountLock']
 
diff -r 31924e58a3c3 -r f4520ad4b8a3 ipa-server/ipa-gui/ipagui/forms/user.py
--- a/ipa-server/ipa-gui/ipagui/forms/user.py	Thu Sep 06 16:21:07 2007 -0700
+++ b/ipa-server/ipa-gui/ipagui/forms/user.py	Fri Sep 07 10:59:50 2007 -0700
@@ -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 -r 31924e58a3c3 -r f4520ad4b8a3 ipa-server/xmlrpc-server/funcs.py
--- a/ipa-server/xmlrpc-server/funcs.py	Thu Sep 06 16:21:07 2007 -0700
+++ b/ipa-server/xmlrpc-server/funcs.py	Fri Sep 07 10:59:50 2007 -0700
@@ -389,7 +389,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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 2228 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20070907/dbde3cd6/attachment.bin>


More information about the Freeipa-devel mailing list