Add ipakrbokasdelegate option to service and host Web UI pages

https://fedorahosted.org/freeipa/ticket/3329
This commit is contained in:
Petr Vobornik 2013-03-29 16:59:44 +01:00 committed by Martin Kosek
parent 43fc525fbb
commit 5af3b146a3
8 changed files with 45 additions and 5 deletions

View File

@ -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;

View File

@ -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'
}
]
},

View File

@ -97,6 +97,11 @@ IPA.service.entity = function(spec) {
]
}
]
},
{
name: 'ipakrbokasdelegate',
type: 'checkbox',
acl_param: 'krbticketflags'
}
]
},

View File

@ -27,6 +27,7 @@
"krbprincipaltype": "rscwo",
"krbpwdhistory": "rscwo",
"krbpwdpolicyreference": "rscwo",
"krbticketflags": "rscwo",
"krbticketpolicyreference": "rscwo",
"krbupenabled": "rscwo",
"l": "rscwo",

View File

@ -29,7 +29,7 @@
"krbprincipaltype": "rsc",
"krbpwdhistory": "rsc",
"krbpwdpolicyreference": "rsc",
"krbticketflags": "rsc",
"krbticketflags": "rscwo",
"krbticketpolicyreference": "rsc",
"krbupenabled": "rsc",
"l": "rscwo",

View File

@ -29,7 +29,7 @@
"krbprincipaltype": "rsc",
"krbpwdhistory": "rsc",
"krbpwdpolicyreference": "rsc",
"krbticketflags": "rsc",
"krbticketflags": "rscwo",
"krbticketpolicyreference": "rsc",
"krbupenabled": "rsc",
"l": "rscwo",

View File

@ -29,7 +29,7 @@
"krbprincipaltype": "rsc",
"krbpwdhistory": "rsc",
"krbpwdpolicyreference": "rsc",
"krbticketflags": "rsc",
"krbticketflags": "rscwo",
"krbticketpolicyreference": "rsc",
"krbupenabled": "rsc",
"l": "rscwo",

View File

@ -5019,6 +5019,17 @@
"name": "ipasshpubkey",
"noextrawhitespace": true,
"type": "unicode"
},
{
"class": "Bool",
"doc": "Client credentials may be delegated to the service",
"flags": [
"virtual_attribute",
"no_search"
],
"label": "Trusted for delegation",
"name": "ipakrbokasdelegate",
"type": "bool"
}
],
"uuid_attribute": "ipauniqueid"
@ -6562,8 +6573,20 @@
"type": "unicode",
"values": [
"MS-PAC",
"PAD"
"PAD",
"NONE"
]
},
{
"class": "Bool",
"doc": "Client credentials may be delegated to the service",
"flags": [
"virtual_attribute",
"no_search"
],
"label": "Trusted for delegation",
"name": "ipakrbokasdelegate",
"type": "bool"
}
],
"uuid_attribute": "ipauniqueid"