From 5af3b146a36ed4902bb8c05242cf1554c400e31a Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Fri, 29 Mar 2013 16:59:44 +0100 Subject: Add ipakrbokasdelegate option to service and host Web UI pages https://fedorahosted.org/freeipa/ticket/3329 --- install/ui/src/freeipa/field.js | 8 +++++++- install/ui/src/freeipa/host.js | 5 +++++ install/ui/src/freeipa/service.js | 5 +++++ 3 files changed, 17 insertions(+), 1 deletion(-) (limited to 'install/ui/src') diff --git a/install/ui/src/freeipa/field.js b/install/ui/src/freeipa/field.js index f972a658..9654c805 100644 --- a/install/ui/src/freeipa/field.js +++ b/install/ui/src/freeipa/field.js @@ -32,6 +32,12 @@ IPA.field = function(spec) { that.container = null; that.name = spec.name; that.param = spec.param || spec.name; + + /** + * For most options param == acl_param. But some params might be virtual and + * actual rights might be defined by other param. + */ + that.acl_param = spec.acl_param || that.param; that.label = spec.label; that.tooltip = spec.tooltip; that.measurement_unit = spec.measurement_unit; @@ -188,7 +194,7 @@ IPA.field = function(spec) { } if (record.attributelevelrights) { - var rights = record.attributelevelrights[that.param]; + var rights = record.attributelevelrights[that.acl_param]; var oc_rights= record.attributelevelrights['objectclass']; var write_oc = oc_rights && oc_rights.indexOf('w') > -1; diff --git a/install/ui/src/freeipa/host.js b/install/ui/src/freeipa/host.js index d064a2fa..40214a11 100644 --- a/install/ui/src/freeipa/host.js +++ b/install/ui/src/freeipa/host.js @@ -88,6 +88,11 @@ IPA.host.entity = function(spec) { type: 'multivalued', name: 'macaddress', flags: ['w_if_no_aci'] + }, + { + name: 'ipakrbokasdelegate', + type: 'checkbox', + acl_param: 'krbticketflags' } ] }, diff --git a/install/ui/src/freeipa/service.js b/install/ui/src/freeipa/service.js index 62c02534..072b2119 100644 --- a/install/ui/src/freeipa/service.js +++ b/install/ui/src/freeipa/service.js @@ -97,6 +97,11 @@ IPA.service.entity = function(spec) { ] } ] + }, + { + name: 'ipakrbokasdelegate', + type: 'checkbox', + acl_param: 'krbticketflags' } ] }, -- cgit