summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--install/ui/src/freeipa/user.js33
1 files changed, 31 insertions, 2 deletions
diff --git a/install/ui/src/freeipa/user.js b/install/ui/src/freeipa/user.js
index 49c7ff4d4..d8d22ffbc 100644
--- a/install/ui/src/freeipa/user.js
+++ b/install/ui/src/freeipa/user.js
@@ -73,6 +73,18 @@ return {
source_facet: 'details',
dest_entity: 'stageuser',
dest_facet: 'search'
+ },
+ {
+ $factory: IPA.cert.cert_update_policy,
+ source_facet: 'details',
+ dest_entity: 'cert',
+ dest_facet: 'search'
+ },
+ {
+ $factory: IPA.cert.cert_update_policy,
+ source_facet: 'details',
+ dest_entity: 'cert',
+ dest_facet: 'details'
}
],
facets: [
@@ -188,8 +200,12 @@ return {
label: '@i18n:objects.sshkeystore.keys'
},
{
- $type: 'certificate',
- name: 'usercertificate'
+ $type: 'certs',
+ adapter: {
+ $type: 'object_adapter',
+ result_index: 3
+ },
+ label: '@i18n:objects.cert.certificates'
},
{
$type: 'checkboxes',
@@ -563,9 +579,22 @@ IPA.user.details_facet = function(spec, no_init) {
batch.add_command(krbtpolicy_command);
+ var certificates = rpc.command({
+ entity: 'cert',
+ method: 'find',
+ retry: false,
+ options: {
+ user: [ pkey ],
+ all: true
+ }
+ });
+
+ batch.add_command(certificates);
+
return batch;
};
+
if (!no_init) that.init_details_facet();
return that;