diff options
author | Rob Crittenden <rcritten@redhat.com> | 2011-04-22 13:43:30 -0400 |
---|---|---|
committer | Adam Young <ayoung@redhat.com> | 2011-04-22 14:49:20 -0400 |
commit | d3b0c64fcec9a97626dbaca238a0186f180fe2fd (patch) | |
tree | 625b972b9945d89731ca7cb4a0c8b39dea08a39a /ipalib/plugins/user.py | |
parent | f746121824c58c1d21d94ae4f2afd8893be9e1dd (diff) | |
download | freeipa-d3b0c64fcec9a97626dbaca238a0186f180fe2fd.tar.gz freeipa-d3b0c64fcec9a97626dbaca238a0186f180fe2fd.tar.xz freeipa-d3b0c64fcec9a97626dbaca238a0186f180fe2fd.zip |
Modify the default attributes shown in user-find to match the UI design.
This change means the UI can stop using the --all option and have to
retrieve significantly less information from the server. It also
speeds up user-find as it doesn't have to calculate membership.
This adds a new baseclass parameter, search_display_attributes, which
can provide a separate list from default_attributes just for find
commands.
The UI will need to be changed to switch from using cn to using
givenname and sn.
ticket 1136
Diffstat (limited to 'ipalib/plugins/user.py')
-rw-r--r-- | ipalib/plugins/user.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ipalib/plugins/user.py b/ipalib/plugins/user.py index efd9e278a..a058ff7ed 100644 --- a/ipalib/plugins/user.py +++ b/ipalib/plugins/user.py @@ -86,6 +86,11 @@ class user(LDAPObject): 'telephonenumber', 'title', 'memberof', 'nsaccountlock', 'memberofindirect', ] + search_display_attributes = [ + 'uid', 'givenname', 'sn', 'homedirectory', 'loginshell', + 'mail', 'telephonenumber', 'title', 'nsaccountlock', + 'uidnumber', 'gidnumber', + ] uuid_attribute = 'ipauniqueid' attribute_members = { 'memberof': ['group', 'netgroup', 'role'], |