diff options
author | Alexander Bokovoy <abokovoy@redhat.com> | 2014-09-30 15:44:31 +0300 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2014-10-13 12:08:50 +0200 |
commit | 63be2ee9f0296e1366c77258929c7ce2dad53154 (patch) | |
tree | 5cacce85daa739cdb7a9aed67c0ea9071881c574 /ipalib/plugins | |
parent | 35c7bd05afd9b1c5d3f3b0049773535e65b8d080 (diff) | |
download | freeipa-63be2ee9f0296e1366c77258929c7ce2dad53154.tar.gz freeipa-63be2ee9f0296e1366c77258929c7ce2dad53154.tar.xz freeipa-63be2ee9f0296e1366c77258929c7ce2dad53154.zip |
Support overridding user shell in ID views
Reviewed-By: Petr Vobornik <pvoborni@redhat.com>
Diffstat (limited to 'ipalib/plugins')
-rw-r--r-- | ipalib/plugins/idviews.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ipalib/plugins/idviews.py b/ipalib/plugins/idviews.py index 3b0df0223..afaa6f910 100644 --- a/ipalib/plugins/idviews.py +++ b/ipalib/plugins/idviews.py @@ -650,14 +650,14 @@ class idoverrideuser(baseidoverride): 'ipapermright': {'read', 'search', 'compare'}, 'ipapermdefaultattr': { 'objectClass', 'ipaAnchorUUID', 'uidNumber', 'description', - 'homeDirectory', 'uid', 'ipaOriginalUid', + 'homeDirectory', 'uid', 'ipaOriginalUid', 'loginShell', }, }, } object_class = baseidoverride.object_class + ['ipaUserOverride'] default_attributes = baseidoverride.default_attributes + [ - 'homeDirectory', 'uidNumber', 'uid', 'ipaOriginalUid', + 'homeDirectory', 'uidNumber', 'uid', 'ipaOriginalUid', 'loginShell', ] takes_params = baseidoverride.takes_params + ( @@ -679,6 +679,10 @@ class idoverrideuser(baseidoverride): cli_name='homedir', label=_('Home directory'), ), + Str('loginshell?', + cli_name='shell', + label=_('Login shell'), + ), Str('ipaoriginaluid?', flags=['no_option', 'no_output'] ), |