046012e hbacrule: reduce number of LDAP searches during deletion

2 files Authored by antorres 2 years ago, Committed by frenaud 2 years ago,
    hbacrule: reduce number of LDAP searches during deletion
    
    The `hbacrule` module performs a call to `selinuxusermap-find`
    during entry deletion. This can be optimized by passing pkey_only=True
    to the search, skipping the post-callback function. Passing the full
    DN of the hbacrule and detecting it in the selinuxusermap find
    also saves one call to hbacrule-show, further reducing the searches.
    
    Related: https://pagure.io/freeipa/issue/8784
    Signed-off-by: Antonio Torres <antorres@redhat.com>
    Reviewed-By: Rob Crittenden <rcritten@redhat.com>