summaryrefslogtreecommitdiffstats
path: root/install/static/group.js
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2010-10-07 14:02:44 -0500
committerAdam Young <ayoung@redhat.com>2010-10-12 14:17:24 -0400
commit1dc0a3ab3e145e0f8fdfd71a1205b546a906bd51 (patch)
tree767a8e704b54f7ef25ad8eac6713d2cd1caa9e8c /install/static/group.js
parent81fe26bdcfdfc1673d4c499eaa1183be1ccee281 (diff)
downloadfreeipa-1dc0a3ab3e145e0f8fdfd71a1205b546a906bd51.tar.gz
freeipa-1dc0a3ab3e145e0f8fdfd71a1205b546a906bd51.tar.xz
freeipa-1dc0a3ab3e145e0f8fdfd71a1205b546a906bd51.zip
Certificate management for services.
This is an initial implementation of certificate management for services. It addresses the mechanism required to view and update certificates. The complete UI implementation will be addressed in subsequent patches. On the server side, the service.py has been modified to define usercertificate in the service object's takes_params. This is needed to generate the proper JSON metadata which is needed by the UI. It also has been modified to accept null certificate for deletion. On the client side, the service details page has been modified to display the base64-encoded certificate in a text area. When the page is saved, the action handler will store the base64-encoded certificate in the proper JSON structure. Also the service name and service hostname are now displayed in separate fields. The details configuration has been modified to support displaying and updating certificates. The structure is changed to use maps to define sections and fields. A section contains name, label, and an array of fields. A field contains name, label, setup function, load function, and save function. This is used to implement custom interface and behavior for certificates. All other entities, test cases, and test data have been updated accordingly. Some functions and variables have been renamed to improve clarity and consistency.
Diffstat (limited to 'install/static/group.js')
-rw-r--r--install/static/group.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/install/static/group.js b/install/static/group.js
index 591184de5..3770e1fb1 100644
--- a/install/static/group.js
+++ b/install/static/group.js
@@ -37,11 +37,11 @@ ipa_entity_set_add_definition('group', [
]);
ipa_entity_set_details_definition('group', [
- ['identity', 'Group Details', [
- ['cn', 'Group Name'],
- ['description', 'Description'],
- ['gidnumber', 'Group ID']
- ]]
+ {name:'identity', label:'Group Details', fields:[
+ {name:'cn', label:'Group Name'},
+ {name:'description', label:'Description'},
+ {name:'gidnumber', label:'Group ID'}
+ ]}
]);
ipa_entity_set_association_definition('group', {