From 5ec23ccb5f1d21c6e6c56650c18d1b4296d59ac9 Mon Sep 17 00:00:00 2001 From: Alexander Bokovoy Date: Fri, 10 Oct 2014 16:44:47 +0300 Subject: Allow override of gecos field in ID views Reviewed-By: Petr Vobornik --- ipalib/plugins/idviews.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'ipalib/plugins/idviews.py') 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'), -- cgit