From 03cdc22c940e82199c2afa8b4a69708237ee0a7a Mon Sep 17 00:00:00 2001 From: Alexander Bokovoy Date: Mon, 6 May 2013 17:10:56 +0200 Subject: Resolve SIDs in Web UI Introduce new command, 'trust-resolve', to aid resolving SIDs to names in the Web UI. The command uses new SSSD interface, nss_idmap, to resolve actual SIDs. SSSD caches resolved data so that future requests to resolve same SIDs are returned from a memory cache. Web UI code is using Dojo/Deferred to deliver result of SID resolution out of band. Once resolved names are available, they replace SID values. Since Web UI only shows ~20 records per page, up to 20 SIDs are resolved at the same time. They all sent within the single request to the server. https://fedorahosted.org/freeipa/ticket/3302 --- API.txt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'API.txt') diff --git a/API.txt b/API.txt index c2400e90..e5bb7beb 100644 --- a/API.txt +++ b/API.txt @@ -3398,6 +3398,13 @@ option: Str('version?', exclude='webui') output: Entry('result', , Gettext('A dictionary representing an LDAP entry', domain='ipa', localedir=None)) output: Output('summary', (, ), None) output: Output('value', , None) +command: trust_resolve +args: 0,4,1 +option: Flag('all', autofill=True, cli_name='all', default=False, exclude='webui') +option: Flag('raw', autofill=True, cli_name='raw', default=False, exclude='webui') +option: Str('sids+', csv=True) +option: Str('version?', exclude='webui') +output: ListOfEntries('result', (, ), Gettext('A list of LDAP entries', domain='ipa', localedir=None)) command: trust_show args: 1,4,3 arg: Str('cn', attribute=True, cli_name='realm', multivalue=False, primary_key=True, query=True, required=True) -- cgit