Skip to content

fix bug where LDAP results were excluded if AddWildcardAsPrefixOfInput is true - #256

Merged
Yvand merged 4 commits into
masterfrom
ldap-results-excluded-if-wildcard-prefix-on
Sep 15, 2026
Merged

Yvand merged 4 commits into
masterfrom
ldap-results-excluded-if-wildcard-prefix-on

Conversation

@Yvand

@Yvand Yvand commented Sep 11, 2026

Copy link
Copy Markdown
Owner

CHANGELOG

  • Fix bug where LDAP results are not returned to the people picker, when LDAPCP property AddWildcardAsPrefixOfInput is set to true

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

The regression test must reliably fail when the filtering bug is present.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Fixes LDAP result filtering when AddWildcardAsPrefixOfInput is enabled and adds regression coverage.

Changes:

  • Corrects LDAP substring filtering.
  • Adds custom-configuration tests and project inclusion.
  • Updates the changelog.
File summaries
File Summary
Yvand.LDAPCPSE/Yvand.LdapClaimsProvider/LDAPCPSE.cs Fixes LDAP result filtering.
Yvand.LDAPCPSE.Tests/Yvand.LDAPCPSE.Tests.csproj Includes the new tests.
Yvand.LDAPCPSE.Tests/CustomConfigurationTests.cs Adds wildcard-prefix regression coverage; the assertion can currently be swallowed by the test helper. Moderate issue (3 votes).
CHANGELOG.md Documents the fix.
Review details
  • Files reviewed: 4/4 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

[Test, TestCaseSource(typeof(TestEntitySourceManager), nameof(TestEntitySourceManager.GetSomeUsers), new object[] { TestEntitySourceManager.MaxNumberOfUsersToTest })]
public void TestUsers(TestUser user)
{
base.TestSearchAndValidateForTestUser(user);

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

No unresolved review issues were identified.

Review details
  • Files reviewed: 5/5 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@Yvand
Yvand merged commit 61c7c07 into master Sep 15, 2026
8 checks passed
@Yvand
Yvand deleted the ldap-results-excluded-if-wildcard-prefix-on branch September 15, 2026 09:28
@Yvand
Yvand restored the ldap-results-excluded-if-wildcard-prefix-on branch September 15, 2026 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants