Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
1 parent
a213110
commit 046012e
Showing
2 changed files
with
14 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters