From f56f8a34d39ba13403e7a693b639b6b37fcd0a04 Mon Sep 17 00:00:00 2001 From: Endi Sukma Dewata Date: Fri, 6 Jan 2012 01:18:48 -0600 Subject: Added instructions to generate CSR. The certificate request dialog box has been modified to show the OpenSSL commands for generating a CSR. The realm and entry names in the test data have been fixed to be more consistent. Ticket #1012 --- install/ui/certificate.js | 15 +- install/ui/host.js | 33 +++- install/ui/service.js | 38 +++- install/ui/test/data/automountkey_add.json | 2 +- install/ui/test/data/automountkey_find.json | 4 +- install/ui/test/data/automountkey_show.json | 2 +- install/ui/test/data/automountlocation_add.json | 2 +- install/ui/test/data/automountmap_add.json | 2 +- .../ui/test/data/automountmap_add_indirect.json | 2 +- install/ui/test/data/automountmap_find.json | 8 +- install/ui/test/data/automountmap_find_pkeys.json | 8 +- install/ui/test/data/automountmap_get_records.json | 8 +- install/ui/test/data/cert_request.json | 4 +- install/ui/test/data/cert_show.json | 4 +- install/ui/test/data/config_show.json | 4 +- install/ui/test/data/dnsrecord_add.json | 2 +- install/ui/test/data/dnsrecord_find.json | 26 +-- install/ui/test/data/dnsrecord_find_pkeys.json | 24 +-- install/ui/test/data/dnsrecord_get_records.json | 26 +-- install/ui/test/data/dnsrecord_show.json | 2 +- install/ui/test/data/dnszone_add.json | 8 +- install/ui/test/data/dnszone_find.json | 64 ++----- install/ui/test/data/dnszone_find_pkeys.json | 16 +- install/ui/test/data/dnszone_get_records.json | 73 ++------ install/ui/test/data/dnszone_show.json | 8 +- install/ui/test/data/group_find.json | 10 +- install/ui/test/data/group_find_pkeys.json | 10 +- install/ui/test/data/group_get_records.json | 10 +- install/ui/test/data/hbacrule_add.json | 2 +- install/ui/test/data/hbacrule_add_host.json | 2 +- install/ui/test/data/hbacrule_add_service.json | 2 +- install/ui/test/data/hbacrule_add_sourcehost.json | 2 +- install/ui/test/data/hbacrule_add_user.json | 2 +- install/ui/test/data/hbacrule_find.json | 2 +- install/ui/test/data/hbacrule_remove_host.json | 2 +- install/ui/test/data/hbacrule_remove_service.json | 2 +- .../ui/test/data/hbacrule_remove_sourcehost.json | 2 +- install/ui/test/data/hbacrule_remove_user.json | 2 +- install/ui/test/data/hbacrule_show.json | 2 +- install/ui/test/data/hbacsvc_add.json | 2 +- install/ui/test/data/hbacsvc_find.json | 20 +-- install/ui/test/data/hbacsvc_find_pkeys.json | 20 +-- install/ui/test/data/hbacsvc_get_records.json | 20 +-- install/ui/test/data/hbacsvc_show.json | 4 +- install/ui/test/data/hbacsvcgroup_add.json | 2 +- install/ui/test/data/hbacsvcgroup_add_member.json | 2 +- install/ui/test/data/hbacsvcgroup_find.json | 2 +- install/ui/test/data/hbacsvcgroup_find_pkeys.json | 2 +- install/ui/test/data/hbacsvcgroup_get_records.json | 2 +- .../ui/test/data/hbacsvcgroup_member_hbacsvc.json | 8 +- .../ui/test/data/hbacsvcgroup_remove_member.json | 2 +- install/ui/test/data/hbacsvcgroup_show.json | 2 +- install/ui/test/data/host_mod.json | 4 +- install/ui/test/data/host_show.json | 6 +- .../ui/test/data/host_show_dev.example.com.json | 6 +- .../ui/test/data/host_show_test.example.com.json | 6 +- install/ui/test/data/hostgroup_member_host.json | 4 +- install/ui/test/data/ipa_init.json | 2 +- install/ui/test/data/ipa_init_objects.json | 4 +- install/ui/test/data/krbtpolicy_show.json | 6 +- install/ui/test/data/permission_find.json | 10 +- install/ui/test/data/permission_find_pkeys.json | 8 +- install/ui/test/data/permission_get_records.json | 10 +- install/ui/test/data/permission_show_filter.json | 2 +- install/ui/test/data/permission_show_subtree.json | 4 +- .../ui/test/data/permission_show_targetgroup.json | 2 +- install/ui/test/data/permission_show_type.json | 2 +- install/ui/test/data/privilege_find.json | 2 +- install/ui/test/data/privilege_get_records.json | 2 +- install/ui/test/data/privilege_show.json | 2 +- install/ui/test/data/pwpolicy_find.json | 12 +- install/ui/test/data/pwpolicy_find_pkeys.json | 12 +- install/ui/test/data/pwpolicy_get_records.json | 16 +- install/ui/test/data/pwpolicy_show.json | 2 +- install/ui/test/data/service_add.json | 8 +- install/ui/test/data/service_add_host.json | 4 +- install/ui/test/data/service_del.json | 4 +- install/ui/test/data/service_disable.json | 4 +- install/ui/test/data/service_find.json | 12 +- install/ui/test/data/service_find_pkeys.json | 12 +- install/ui/test/data/service_get_records.json | 18 +- install/ui/test/data/service_managedby_host.json | 4 +- install/ui/test/data/service_mod.json | 6 +- install/ui/test/data/service_remove_host.sh | 4 +- install/ui/test/data/service_show.json | 10 +- install/ui/test/data/sudocmd_add.json | 2 +- install/ui/test/data/sudocmd_find.json | 4 +- install/ui/test/data/sudocmd_find_pkeys.json | 4 +- install/ui/test/data/sudocmd_get_records.json | 4 +- install/ui/test/data/sudocmd_memberof_add.json | 4 +- install/ui/test/data/sudocmd_memberof_remove.json | 4 +- install/ui/test/data/sudocmd_memberof_show.json | 4 +- install/ui/test/data/sudocmd_show.json | 6 +- install/ui/test/data/sudocmdgroup_add.json | 2 +- install/ui/test/data/sudocmdgroup_add_member.json | 2 +- install/ui/test/data/sudocmdgroup_find.json | 4 +- install/ui/test/data/sudocmdgroup_find_pkeys.json | 4 +- install/ui/test/data/sudocmdgroup_get_records.json | 4 +- .../ui/test/data/sudocmdgroup_member_sudocmd.json | 8 +- .../ui/test/data/sudocmdgroup_remove_member.json | 2 +- install/ui/test/data/sudocmdgroup_show.json | 2 +- install/ui/test/data/sudorule_add.json | 2 +- install/ui/test/data/sudorule_find.json | 2 +- install/ui/test/data/sudorule_find_pkeys.json | 2 +- install/ui/test/data/sudorule_get_records.json | 2 +- install/ui/test/data/sudorule_show.json | 2 +- install/ui/test/data/user_find.json | 200 ++++++++++----------- install/ui/test/data/user_memberof_group.json | 4 +- ipalib/plugins/internal.py | 2 +- 109 files changed, 484 insertions(+), 527 deletions(-) diff --git a/install/ui/certificate.js b/install/ui/certificate.js index 372edcdaa..70533c14d 100755 --- a/install/ui/certificate.js +++ b/install/ui/certificate.js @@ -437,8 +437,9 @@ IPA.cert.request_dialog = function(spec) { var that = IPA.dialog(spec); - that.width = spec.width || 500; - that.height = spec.height || 400; + that.width = spec.width || 600; + that.height = spec.height || 450; + that.message = spec.message; that.request = spec.request; @@ -466,14 +467,11 @@ IPA.cert.request_dialog = function(spec) { }); that.create = function() { - that.container.append(IPA.messages.objects.cert.enter_csr+':'); - that.container.append('
'); - that.container.append('
'); + that.container.append(that.message); that.textarea = $('