3a9a5bd idview: improve performance of idview-show

1 file Authored by frenaud a year ago, Committed by rcritten a year ago,
    idview: improve performance of idview-show
    The command ipa idview-show NAME has a post callback
    method that replaces the ID override anchor with the corresponding
    user name.
    For instance the anchor
    is replaced with the name of the ad user aduser@ad.test.
    The method loops on all the anchors and for each one performs the
    resolution, which can be a costly operation if the anchor is for
    a trusted user. Instead of doing a search for each anchor, it is
    possible to read the 'ipaOriginalUid' value from the ID override
    Fixes: https://pagure.io/freeipa/issue/9372
    Signed-off-by: Florence Blanc-Renaud <flo@redhat.com>
    Reviewed-By: Rob Crittenden <rcritten@redhat.com>
    Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
file modified
+8 -1