diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2013-09-24 16:20:38 +0200 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2013-09-26 10:25:59 +0200 |
commit | 745cbd2b6d31968366963cd81dd69588cce51f32 (patch) | |
tree | 87445464d1d2dc99718a8c7d925c758a24517fdf | |
parent | de5ec4fbd916c52e7474f1e4dae3b69c80eb497a (diff) | |
download | freeipa.git-745cbd2b6d31968366963cd81dd69588cce51f32.tar.gz freeipa.git-745cbd2b6d31968366963cd81dd69588cce51f32.tar.xz freeipa.git-745cbd2b6d31968366963cd81dd69588cce51f32.zip |
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
-rw-r--r-- | install/ui/src/freeipa/host.js | 3 | ||||
-rw-r--r-- | ipatests/test_webui/test_host.py | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/install/ui/src/freeipa/host.js b/install/ui/src/freeipa/host.js index f4b1e249..f5007538 100644 --- a/install/ui/src/freeipa/host.js +++ b/install/ui/src/freeipa/host.js @@ -99,7 +99,8 @@ return { { name: 'ipakrbokasdelegate', $type: 'checkbox', - acl_param: 'krbticketflags' + acl_param: 'krbticketflags', + flags: ['w_if_no_aci'] } ] }, diff --git a/ipatests/test_webui/test_host.py b/ipatests/test_webui/test_host.py index cb697c5e..09200061 100644 --- a/ipatests/test_webui/test_host.py +++ b/ipatests/test_webui/test_host.py @@ -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): """ |