diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2012-07-30 14:32:54 +0200 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2012-08-14 08:09:35 +0200 |
commit | d536b3824e6a2cee18164187f596089b97b3c00f (patch) | |
tree | 9fc265a56da8610b84976a62b0b366cebe7d9d37 /install/ui/group.js | |
parent | 271043ccf7dc16dd2c2f5d3dc99199a55ebe65b2 (diff) | |
download | freeipa-d536b3824e6a2cee18164187f596089b97b3c00f.tar.gz freeipa-d536b3824e6a2cee18164187f596089b97b3c00f.tar.xz freeipa-d536b3824e6a2cee18164187f596089b97b3c00f.zip |
Make group posix
New option for creating plain user group posix group. External group can't be made posix.
https://fedorahosted.org/freeipa/ticket/2338
Diffstat (limited to 'install/ui/group.js')
-rw-r--r-- | install/ui/group.js | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/install/ui/group.js b/install/ui/group.js index f8d8e666f..769df0a8e 100644 --- a/install/ui/group.js +++ b/install/ui/group.js @@ -56,10 +56,11 @@ IPA.group.entity = function(spec) { ], actions: [ IPA.select_action, + IPA.group.make_posix_action, IPA.group.make_external_action, IPA.delete_action ], - header_actions: ['select_action', 'make_external', 'delete'], + header_actions: ['select_action', 'make_posix', 'make_external', 'delete'], state: { evaluators: [ IPA.object_class_evaluator @@ -197,6 +198,22 @@ IPA.group_adder_dialog = function(spec) { return that; }; +IPA.group.make_posix_action = function(spec) { + + spec = spec || {}; + spec.name = spec.name || 'make_posix'; + spec.method = spec.method || 'mod'; + spec.label = spec.label || IPA.messages.objects.group.make_posix; + spec.disable_cond = spec.disable_cond || ['oc_posixgroup', 'oc_ipaexternalgroup']; + spec.options = spec.options || { + posix: true + }; + + var that = IPA.object_action(spec); + + return that; +}; + IPA.group.make_external_action = function(spec) { spec = spec || {}; |