summaryrefslogtreecommitdiffstats
path: root/install/ui/entitle.js
diff options
context:
space:
mode:
authorEndi Sukma Dewata <edewata@redhat.com>2011-11-16 21:07:20 -0600
committerEndi S. Dewata <edewata@redhat.com>2011-12-06 22:07:52 +0000
commita8ea42bda841c8773d68886614faf9efd38e33bd (patch)
tree92ddaae7ead82784eefb8dde81bc81e91945bfa0 /install/ui/entitle.js
parent6f0c16e4289dd1a68bfd673da52a511087d84b9a (diff)
downloadfreeipa.git-a8ea42bda841c8773d68886614faf9efd38e33bd.tar.gz
freeipa.git-a8ea42bda841c8773d68886614faf9efd38e33bd.tar.xz
freeipa.git-a8ea42bda841c8773d68886614faf9efd38e33bd.zip
Fixed entity metadata resolution.
The current code assumes that an entity will always have a corresponding LDAPObject on the server, so it looks for the metadata in a fixed location. This assumption doesn't work for HBAC Test since it is a Command, not an LDAPObject, so the metadata has to be obtained from a different location. A new method get_default_metadata() has been added to allow each entity to find the metadata from the correct location. Ticket #388
Diffstat (limited to 'install/ui/entitle.js')
-rw-r--r--install/ui/entitle.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/install/ui/entitle.js b/install/ui/entitle.js
index 0a87e3ea..ea838e2c 100644
--- a/install/ui/entitle.js
+++ b/install/ui/entitle.js
@@ -37,9 +37,10 @@ IPA.entitle.entity = function(spec) {
that.status = IPA.entitle.unregistered;
- that.init = function(params) {
+ that.init = function() {
+ that.entity_init();
- params.builder.facet_groups([ 'account', 'certificates' ]).
+ that.builder.facet_groups([ 'account', 'certificates' ]).
details_facet({
factory: IPA.entitle.details_facet,
label: IPA.messages.objects.entitle.account,