summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins/idviews.py
diff options
context:
space:
mode:
authorAlexander Bokovoy <abokovoy@redhat.com>2014-10-10 09:30:51 +0300
committerPetr Vobornik <pvoborni@redhat.com>2014-10-13 12:08:50 +0200
commitb50524b10c82ed7931a2e84dbb029e8909aa8f3f (patch)
tree2b9b3647c3059e5a24a9696be2222b36694e152c /ipalib/plugins/idviews.py
parentca42d3469a6f83376d33b08d7bb4b43c2e93d604 (diff)
downloadfreeipa-b50524b10c82ed7931a2e84dbb029e8909aa8f3f.tar.gz
freeipa-b50524b10c82ed7931a2e84dbb029e8909aa8f3f.tar.xz
freeipa-b50524b10c82ed7931a2e84dbb029e8909aa8f3f.zip
Allow user overrides to specify GID of the user
Resolves https://fedorahosted.org/freeipa/ticket/4617 Reviewed-By: Petr Vobornik <pvoborni@redhat.com>
Diffstat (limited to 'ipalib/plugins/idviews.py')
-rw-r--r--ipalib/plugins/idviews.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/ipalib/plugins/idviews.py b/ipalib/plugins/idviews.py
index c0b108260..037af860f 100644
--- a/ipalib/plugins/idviews.py
+++ b/ipalib/plugins/idviews.py
@@ -660,7 +660,7 @@ class idoverrideuser(baseidoverride):
object_class = baseidoverride.object_class + ['ipaUserOverride']
default_attributes = baseidoverride.default_attributes + [
'homeDirectory', 'uidNumber', 'uid', 'ipaOriginalUid', 'loginShell',
- 'ipaSshPubkey',
+ 'ipaSshPubkey', 'gidNumber',
]
takes_params = baseidoverride.takes_params + (
@@ -678,6 +678,11 @@ class idoverrideuser(baseidoverride):
doc=_('User ID Number'),
minvalue=1,
),
+ Int('gidnumber?',
+ label=_('GID'),
+ doc=_('Group ID Number'),
+ minvalue=1,
+ ),
Str('homedirectory?',
cli_name='homedir',
label=_('Home directory'),