summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins/idviews.py
diff options
context:
space:
mode:
authorAlexander Bokovoy <abokovoy@redhat.com>2014-10-10 16:44:47 +0300
committerPetr Vobornik <pvoborni@redhat.com>2014-10-13 12:08:50 +0200
commit5ec23ccb5f1d21c6e6c56650c18d1b4296d59ac9 (patch)
tree4425113f4b723fa14c5a9ac9d51c92f2f76a1225 /ipalib/plugins/idviews.py
parentb50524b10c82ed7931a2e84dbb029e8909aa8f3f (diff)
downloadfreeipa-5ec23ccb5f1d21c6e6c56650c18d1b4296d59ac9.tar.gz
freeipa-5ec23ccb5f1d21c6e6c56650c18d1b4296d59ac9.tar.xz
freeipa-5ec23ccb5f1d21c6e6c56650c18d1b4296d59ac9.zip
Allow override of gecos field in ID views
Reviewed-By: Petr Vobornik <pvoborni@redhat.com>
Diffstat (limited to 'ipalib/plugins/idviews.py')
-rw-r--r--ipalib/plugins/idviews.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/ipalib/plugins/idviews.py b/ipalib/plugins/idviews.py
index 037af860f..1ae1709a1 100644
--- a/ipalib/plugins/idviews.py
+++ b/ipalib/plugins/idviews.py
@@ -652,7 +652,7 @@ class idoverrideuser(baseidoverride):
'ipapermright': {'read', 'search', 'compare'},
'ipapermdefaultattr': {
'objectClass', 'ipaAnchorUUID', 'uidNumber', 'description',
- 'homeDirectory', 'uid', 'ipaOriginalUid', 'loginShell',
+ 'homeDirectory', 'uid', 'ipaOriginalUid', 'loginShell', 'gecos',
},
},
}
@@ -660,7 +660,7 @@ class idoverrideuser(baseidoverride):
object_class = baseidoverride.object_class + ['ipaUserOverride']
default_attributes = baseidoverride.default_attributes + [
'homeDirectory', 'uidNumber', 'uid', 'ipaOriginalUid', 'loginShell',
- 'ipaSshPubkey', 'gidNumber',
+ 'ipaSshPubkey', 'gidNumber', 'gecos',
]
takes_params = baseidoverride.takes_params + (
@@ -678,6 +678,9 @@ class idoverrideuser(baseidoverride):
doc=_('User ID Number'),
minvalue=1,
),
+ Str('gecos?',
+ label=_('GECOS'),
+ ),
Int('gidnumber?',
label=_('GID'),
doc=_('Group ID Number'),