Skip to content

Commit

Permalink
Fix validation issue when multiple LDAP connections return an identic…
Browse files Browse the repository at this point in the history
…al entity (#230)

* Update LDAPCPSE.cs

* Update CHANGELOG.md
  • Loading branch information
Yvand authored Oct 22, 2024
1 parent e9c0af0 commit f464770
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change log for LDAPCP

## LDAPCP Second Edition v20.0 - Unreleased

* Fix validation issue when multiple LDAP connections return an identical entity

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

* Fix error when creating the configuration if the trust uses an identifier claim type that is not well-known by LDAPCP - https://github.com/Yvand/LDAPCP/issues/221
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 @@ -633,7 +633,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 f464770

Please sign in to comment.