mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-23 15:40:01 -06:00
Allow edit of ipakrbokasdelegate in Web UI when attrlevelrights are unknown
Old host entries are missing object class with krbticketflags attribute. Therefore UI does not receive attrlevelrights for it. This OC is added when ipakrbokasdelegate is set. This patch adds the usual hack for such cases. https://fedorahosted.org/freeipa/ticket/3940
This commit is contained in:
parent
a93fc02af6
commit
edf0719409
@ -99,7 +99,8 @@ return {
|
||||
{
|
||||
name: 'ipakrbokasdelegate',
|
||||
$type: 'checkbox',
|
||||
acl_param: 'krbticketflags'
|
||||
acl_param: 'krbticketflags',
|
||||
flags: ['w_if_no_aci']
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -203,13 +203,13 @@ class test_host(host_tasks):
|
||||
Test Kerberos flags
|
||||
http://www.freeipa.org/page/V3/Kerberos_Flags
|
||||
"""
|
||||
pkey = self.config.get('ipa_server')
|
||||
name = 'ipakrbokasdelegate'
|
||||
mod = {'mod': [('checkbox', name, '')]}
|
||||
checked = ['checked']
|
||||
|
||||
self.init_app()
|
||||
self.navigate_to_record(pkey, entity=ENTITY)
|
||||
self.add_record(ENTITY, self.data)
|
||||
self.navigate_to_record(self.pkey)
|
||||
|
||||
if self.get_field_checked(name) == checked:
|
||||
self.mod_record(ENTITY, mod) # uncheck
|
||||
@ -218,6 +218,7 @@ class test_host(host_tasks):
|
||||
self.validate_fields([('checkbox', name, checked)])
|
||||
self.mod_record(ENTITY, mod)
|
||||
self.validate_fields([('checkbox', name, [])])
|
||||
self.delete_record(self.pkey, self.data.get('del'))
|
||||
|
||||
def test_associations(self):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user