summaryrefslogtreecommitdiffstats
path: root/install/ui/src/freeipa/service.js
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2015-07-08 22:04:45 +0200
committerPetr Vobornik <pvoborni@redhat.com>2015-07-09 10:58:40 +0200
commit7c481b1e90dbb6821b71707c4012b3857adb84e2 (patch)
tree134b099acdec8d327d14a91a2fc3b25c9b3c8e74 /install/ui/src/freeipa/service.js
parentcd3ca94ff2ef738cb3a9eae502193413058f976d (diff)
downloadfreeipa-7c481b1e90dbb6821b71707c4012b3857adb84e2.tar.gz
freeipa-7c481b1e90dbb6821b71707c4012b3857adb84e2.tar.xz
freeipa-7c481b1e90dbb6821b71707c4012b3857adb84e2.zip
webui: cert-request improvements
Certificate request action and dialog now supports 'profile_id', 'add' and 'principal' options. 'add' and 'principal' are disaplayed only if certificate is added from certificate search facet. Certificate search facet allows to add a certificate. User details facet allows to add a certificate. part of https://fedorahosted.org/freeipa/ticket/5046 Reviewed-By: Martin Basti <mbasti@redhat.com>
Diffstat (limited to 'install/ui/src/freeipa/service.js')
-rw-r--r--install/ui/src/freeipa/service.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/install/ui/src/freeipa/service.js b/install/ui/src/freeipa/service.js
index 5c28e939d..5b469b5e1 100644
--- a/install/ui/src/freeipa/service.js
+++ b/install/ui/src/freeipa/service.js
@@ -554,7 +554,7 @@ IPA.service.certificate_policy = function(spec) {
spec.get_principal = spec.get_principal || get_pkey;
- spec.get_hostname = spec.get_hostname || function(result) {
+ spec.get_cn = spec.get_cn || function(result) {
var value = get_pkey(result);
if (value) {
value = value.replace(/@.*$/, '').replace(/^.*\//, '');
@@ -562,6 +562,10 @@ IPA.service.certificate_policy = function(spec) {
return value;
};
+ spec.get_cn_name = spec.get_cn_name || function(result) {
+ return "hostname";
+ };
+
var that = IPA.cert.load_policy(spec);
return that;
};