Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport][ipa-4-9] hbacrule: reduce number of LDAP searches during deletion #5759

Closed
wants to merge 1 commit into from

Conversation

rcritten
Copy link
Contributor

@rcritten rcritten commented May 6, 2021

This PR was opened automatically because PR #5689 was pushed to master and backport to ipa-4-9 is required.

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>
@rcritten
Copy link
Contributor Author

rcritten commented May 6, 2021

PR was ACKed automatically because this is backport of PR #5689. Wait for CI to finish before pushing. In case of questions or problems contact @antoniotorresm who is author of the original PR.

@rcritten rcritten added the ack Pull Request approved, can be merged label May 6, 2021
@flo-renaud
Copy link
Contributor

ipa-4-9:

  • 046012e hbacrule: reduce number of LDAP searches during deletion

@flo-renaud flo-renaud added the pushed Pull Request has already been pushed label May 7, 2021
@flo-renaud flo-renaud closed this May 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ack Pull Request approved, can be merged pushed Pull Request has already been pushed
Projects
None yet
3 participants