Kevin McCarthy
c85c8eede3
Add 'test' target to makefiles. Hook up ipautil tests to run.
2007-09-04 10:22:45 -07:00
Kevin McCarthy
90a34f3865
Add auto-suggest for uid and email fields.
2007-08-30 15:10:48 -07:00
Kevin McCarthy
59f843517d
Add scriptaculous effects library (will add more if they become necessary).
...
Scriptaculous <http://script.aculo.us/ > is released under an MIT license.
2007-08-30 15:05:12 -07:00
Kevin McCarthy
a57fe697a7
Fix python-ldap attribution for cidict.
2007-08-27 09:49:35 -07:00
Kevin McCarthy
50450d6acb
UI cleanup
2007-08-29 16:49:46 -07:00
Kevin McCarthy
e9bd8dee3b
Change user search to be asynchronous.
...
This way it returns results even if the search times out.
The find_users() search now returns a counter as the first result, which
is set to -1 if the results are partial.
2007-08-28 16:01:07 -07:00
Kevin McCarthy
ef2dc5cefa
Changes for larger data demo.
...
Add fields to search results
Put result() call inside try block - it's throwing an exception
Trap ADMINLIMIT and SIZELIMIT exceptions
2007-08-28 09:20:12 -07:00
Kevin McCarthy
e31b526c81
Enhanced user search:
...
- "configurable" fields to search on
- tokenize search words
- prioritize exact matches over partial matches
- split match filter generation into a re-usable function.
Other updates:
- use finally block to return ldap connections
- update web gui to use new get_user methods
2007-08-27 11:30:26 -07:00
Kevin McCarthy
c7c8aa0926
Add ipautil, which contains CIDict - a case insensitive dict.
...
This version of the cidict extends the dict class, which allows it to
play nicely with turbogears.
Also includes extensive tests.
2007-08-24 10:31:45 -07:00
Kevin McCarthy
7691653c0a
Create ipaerror module.
...
Move LDAPError trapping/conversion into the ipaldap module.
Fix xmlrpc layer to encode/decode ipaerrors properly.
Also, implement mid-air collision exception for updates.
2007-08-22 10:30:51 -07:00
Kevin McCarthy
a8f302aa9f
Move ldap search filter escaping into the funcs.py layer.
2007-08-21 14:26:36 -07:00
Kevin McCarthy
f5e30866d1
Escape search input. Search by uid and cn.
2007-08-20 14:23:23 -07:00
Kevin McCarthy
6b69d9cc46
Remove auto-wildcarding of uid search.
...
Remove list users link.
2007-08-20 13:14:00 -07:00
Kevin McCarthy
4c8f2346a0
Improved modlist generator.
2007-08-20 16:18:12 -07:00
Kevin McCarthy
cb03961ff1
Convert add_user to take a user instead of a dict.
2007-08-20 12:10:50 -07:00
Kevin McCarthy
c113d932b1
Move utf-8 conversion inside user.py (for updates).
2007-08-20 11:39:04 -07:00
Kevin McCarthy
66d3f1e730
Embed origiginal values inside user, and have update_user pass in a user
...
object. Based on rcrit's original patch.
Push scalar to list value conversion inside funcs.py.
2007-08-20 10:50:11 -07:00
Kevin McCarthy
5f0f192ae3
change strings to be encoded using value.encode("utf-8").
...
fix update to set 'cn' instead of 'sn'.
remove str() in funcs.add_user().
2007-08-17 15:32:05 -07:00
Kevin McCarthy
a0e2fa00f1
Manual merge changes in for the cidict/ipaclient add_user()
2007-08-17 14:27:54 -07:00
Kevin McCarthy
8a0c3cb945
Change userlist into a quick search form.
...
Add hack to update cn using givenname+sn (for now).
Change funcs.find_users() to not error if no results.
2007-08-17 10:58:56 -07:00
Kevin McCarthy
3184b5cd97
Remove ':' from the label widgets so they can be used outside forms.
...
Add ':' into the edit/new/show pages.
2007-08-17 10:59:42 -07:00
Kevin McCarthy
0ddf0699a5
Add update user to gui.
...
Fix fields to be lowercase in web gui (server now returns them lowercase).
Fix ipaclient.py to refer to lowercase fields when adding a user.
Fix user.getValue() to check isinstance(value,list) instead of value[0].
2007-08-16 15:05:36 -07:00
Kevin McCarthy
2ef4792fd1
- Add password generator method to controller.
...
This uses the random.SystemRandom() method to generate an 8-digit
alphanumeric password.
- Add ajax call to usernew and useredit forms to generate a new password
- Add the prototype javascript library: http://www.prototypejs.org/
prototype is distributed with the MIT license.
- Add a checkbox to toggle editing (and displaying) the password.
- Change usershow template to use same field labels as the edit and new forms.
2007-08-14 09:40:13 -07:00
Kevin McCarthy
10cbfe8787
Split userform into edit and new forms.
...
(They will likely diverge so no sense forcing them together).
Add css for required fields.
Add "_orig" hidden fields to the edit form in prep for sending only modified
fields.
2007-08-10 16:31:59 -07:00
Kevin McCarthy
b3aba86b2e
Add images and empty files, which didn't seem to come through in the
...
hg export properly.
2007-08-12 05:59:49 -07:00
kmccarth@dhcp-172-16-25-136.sfbay.redhat.com
728e44833c
Addiing initial turbogears web gui.
...
Contains simple user add, list, and view pages.
2007-08-12 04:53:18 -07:00
kmccarth@redhat.com
cdaee95230
Addiing initial turbogears web gui.
...
Contains simple user add, list, and view pages.
2007-08-12 04:53:18 -07:00
kmccarth@redhat.com
84d3b7be58
Change server to not be global nor reused.
2007-08-02 14:15:40 -07:00
kmccarth@redhat.com
88ab86fa37
Rename 'gn' to 'givenName'
2007-08-02 15:01:59 -07:00