Skip to content

tests: Clarify approx match filter#8714

Open
justin-stephenson wants to merge 1 commit into
SSSD:masterfrom
justin-stephenson:approx_match_comment
Open

tests: Clarify approx match filter#8714
justin-stephenson wants to merge 1 commit into
SSSD:masterfrom
justin-stephenson:approx_match_comment

Conversation

@justin-stephenson
Copy link
Copy Markdown
Contributor

Debugging this test for an unrelated issue (new failover) lead to several questions about 'approximate match' filter, adding some comments to make it more clear after some investigation.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request adds explanatory comments to the LDAP access control system tests, detailing how different providers (AD, Samba, and 389ds) handle approximate match filters. A review comment identifies a potential logical inconsistency in the test logic: if Samba rejects the approximate match filter with an error as described in the new comments, the assertion that 'user1' can successfully log in may be incorrect, as the entire access check search would likely fail.

Comment thread src/tests/system/tests/test_access_control_ldap_filter.py Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-to-sssd-2-9 backport-to-sssd-2-13 Tests Trivial A single reviewer is sufficient to review the Pull Request Waiting for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants