diff options
Diffstat (limited to 'install/ui/src')
-rw-r--r-- | install/ui/src/freeipa/field.js | 8 | ||||
-rw-r--r-- | install/ui/src/freeipa/host.js | 5 | ||||
-rw-r--r-- | install/ui/src/freeipa/service.js | 5 |
3 files changed, 17 insertions, 1 deletions
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' } ] }, |