mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Add ipakrbokasdelegate option to service and host Web UI pages
https://fedorahosted.org/freeipa/ticket/3329
This commit is contained in:
parent
43fc525fbb
commit
5af3b146a3
@ -32,6 +32,12 @@ IPA.field = function(spec) {
|
|||||||
that.container = null;
|
that.container = null;
|
||||||
that.name = spec.name;
|
that.name = spec.name;
|
||||||
that.param = spec.param || 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.label = spec.label;
|
||||||
that.tooltip = spec.tooltip;
|
that.tooltip = spec.tooltip;
|
||||||
that.measurement_unit = spec.measurement_unit;
|
that.measurement_unit = spec.measurement_unit;
|
||||||
@ -188,7 +194,7 @@ IPA.field = function(spec) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (record.attributelevelrights) {
|
if (record.attributelevelrights) {
|
||||||
var rights = record.attributelevelrights[that.param];
|
var rights = record.attributelevelrights[that.acl_param];
|
||||||
var oc_rights= record.attributelevelrights['objectclass'];
|
var oc_rights= record.attributelevelrights['objectclass'];
|
||||||
var write_oc = oc_rights && oc_rights.indexOf('w') > -1;
|
var write_oc = oc_rights && oc_rights.indexOf('w') > -1;
|
||||||
|
|
||||||
|
@ -88,6 +88,11 @@ IPA.host.entity = function(spec) {
|
|||||||
type: 'multivalued',
|
type: 'multivalued',
|
||||||
name: 'macaddress',
|
name: 'macaddress',
|
||||||
flags: ['w_if_no_aci']
|
flags: ['w_if_no_aci']
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'ipakrbokasdelegate',
|
||||||
|
type: 'checkbox',
|
||||||
|
acl_param: 'krbticketflags'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -97,6 +97,11 @@ IPA.service.entity = function(spec) {
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'ipakrbokasdelegate',
|
||||||
|
type: 'checkbox',
|
||||||
|
acl_param: 'krbticketflags'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
"krbprincipaltype": "rscwo",
|
"krbprincipaltype": "rscwo",
|
||||||
"krbpwdhistory": "rscwo",
|
"krbpwdhistory": "rscwo",
|
||||||
"krbpwdpolicyreference": "rscwo",
|
"krbpwdpolicyreference": "rscwo",
|
||||||
|
"krbticketflags": "rscwo",
|
||||||
"krbticketpolicyreference": "rscwo",
|
"krbticketpolicyreference": "rscwo",
|
||||||
"krbupenabled": "rscwo",
|
"krbupenabled": "rscwo",
|
||||||
"l": "rscwo",
|
"l": "rscwo",
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
"krbprincipaltype": "rsc",
|
"krbprincipaltype": "rsc",
|
||||||
"krbpwdhistory": "rsc",
|
"krbpwdhistory": "rsc",
|
||||||
"krbpwdpolicyreference": "rsc",
|
"krbpwdpolicyreference": "rsc",
|
||||||
"krbticketflags": "rsc",
|
"krbticketflags": "rscwo",
|
||||||
"krbticketpolicyreference": "rsc",
|
"krbticketpolicyreference": "rsc",
|
||||||
"krbupenabled": "rsc",
|
"krbupenabled": "rsc",
|
||||||
"l": "rscwo",
|
"l": "rscwo",
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
"krbprincipaltype": "rsc",
|
"krbprincipaltype": "rsc",
|
||||||
"krbpwdhistory": "rsc",
|
"krbpwdhistory": "rsc",
|
||||||
"krbpwdpolicyreference": "rsc",
|
"krbpwdpolicyreference": "rsc",
|
||||||
"krbticketflags": "rsc",
|
"krbticketflags": "rscwo",
|
||||||
"krbticketpolicyreference": "rsc",
|
"krbticketpolicyreference": "rsc",
|
||||||
"krbupenabled": "rsc",
|
"krbupenabled": "rsc",
|
||||||
"l": "rscwo",
|
"l": "rscwo",
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
"krbprincipaltype": "rsc",
|
"krbprincipaltype": "rsc",
|
||||||
"krbpwdhistory": "rsc",
|
"krbpwdhistory": "rsc",
|
||||||
"krbpwdpolicyreference": "rsc",
|
"krbpwdpolicyreference": "rsc",
|
||||||
"krbticketflags": "rsc",
|
"krbticketflags": "rscwo",
|
||||||
"krbticketpolicyreference": "rsc",
|
"krbticketpolicyreference": "rsc",
|
||||||
"krbupenabled": "rsc",
|
"krbupenabled": "rsc",
|
||||||
"l": "rscwo",
|
"l": "rscwo",
|
||||||
|
@ -5019,6 +5019,17 @@
|
|||||||
"name": "ipasshpubkey",
|
"name": "ipasshpubkey",
|
||||||
"noextrawhitespace": true,
|
"noextrawhitespace": true,
|
||||||
"type": "unicode"
|
"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"
|
"uuid_attribute": "ipauniqueid"
|
||||||
@ -6562,8 +6573,20 @@
|
|||||||
"type": "unicode",
|
"type": "unicode",
|
||||||
"values": [
|
"values": [
|
||||||
"MS-PAC",
|
"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"
|
"uuid_attribute": "ipauniqueid"
|
||||||
|
Loading…
Reference in New Issue
Block a user