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

IPA: Use dereference for host groups even if the configuration disables dereference #773

Closed
wants to merge 2 commits into from

Conversation

jhrozek
Copy link
Contributor

@jhrozek jhrozek commented Mar 12, 2019

Related: https://pagure.io/SSSD/sssd/issue/3979

In some cases, it makes sense for performance reasons to disable
dereference when processing user groups. But since processing of HBAC host
groups is not much of a performance sensitive operation, we can get away
with ignoring the client side setting and always using the dereference
branch if the server supports the dereference call.

@mzidek-gh
Copy link
Contributor

Hi, this is not a full review, but I think the man page for ldap_deref_threshold needs to specify that the option does not apply for HBAC rules.

@jhrozek
Copy link
Contributor Author

jhrozek commented Mar 25, 2019

Thanks, I amended the man page.

by setting the value to 0. There are some
codepaths in SSSD, notably the IPA HBAC provider,
that are only implemented with HBAC in mind and
where disabling dereference will have no effect.
</para>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that are only implemented with HBAC in mind does not make any sense to me.

@pbrezina
Copy link
Member

Code wise ack. But the man page change is not understandable to me.

Related:
https://pagure.io/SSSD/sssd/issue/3979

In some cases, it makes sense for performance reasons to disable
dereference when processing user groups. But since processing of HBAC host
groups is not much of a performance sensitive operation, we can get away
with ignoring the client side setting and always using the dereference
branch if the server supports the dereference call.

This patch extends the sdap_has_deref_support call with a flag that
allows the caller to bypass the client side check.
…es dereference

Related:
https://pagure.io/SSSD/sssd/issue/3979

In some cases, it makes sense for performance reasons to disable
dereference when processing user groups. But since processing of HBAC host
groups is not much of a performance sensitive operation, we can get away
with ignoring the client side setting and always using the dereference
branch if the server supports the dereference call.
@jhrozek
Copy link
Contributor Author

jhrozek commented Mar 27, 2019

Thank you, manpage updated.

@pbrezina
Copy link
Member

Thank you. Ack.

@jhrozek
Copy link
Contributor Author

jhrozek commented Mar 27, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants