Skip to content

Commit

Permalink
Merge branch 'releases/ldapcpse-v20.0' into add-custom-claims-provide…
Browse files Browse the repository at this point in the history
…r-sample
  • Loading branch information
Yvand authored Oct 25, 2024
2 parents f313572 + f464770 commit 4c299c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

* Add property CustomFilter to class DirectoryConnection, to allow setting a custom LDAP filter per LDAP connection
* Add sample custom claims provider LDAPCPSE_basic
* Fix validation issue when multiple LDAP connections return an identical entity

## LDAPCP Second Edition v19.0.20240823.4 - Published in August 23, 2024

Expand Down
3 changes: 2 additions & 1 deletion Yvand.LDAPCPSE/Yvand.LdapClaimsProvider/LDAPCPSE.cs
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,8 @@ protected List<PickerEntity> SearchOrValidate(OperationContext currentContext)
else
{
SearchOrValidateInLdap();
if (ldapSearchResults?.Count == 1)
// Even if >1 it must proceed, becausee multiple LDAP servers may validate the entity, and ProcessLdapResults() will eliminate duplicates
if (ldapSearchResults?.Count >= 1)
{
pickerEntityList = this.ProcessLdapResults(currentContext, ldapSearchResults);
}
Expand Down

0 comments on commit 4c299c5

Please sign in to comment.