Skip to content

Conversation

@degetz
Copy link

@degetz degetz commented Jun 26, 2020

replacing inaccurate find_by_dn with a better solution.

Issue is: original search can return duplicates:
CN=joe,OU=base,DC=xyz
CN=joe,OU=test,OU=base,DC=xyz

will both be present when looking for CN=joe using OU=base,DC=xyz as search base. Since it only wants to retrieve an object identified by the DN using that as the base of the search with the scope base feels more appropriate.

degetz added 2 commits June 26, 2020 15:13
replacing inaccurate find_by_dn with a better solution.

Issue is original search can return duplicates:
CN=joe,OU=base,DC=xyz
CN=joe,OU=test,OU=base,DC=xyz

will both be present when looking for CN=joe using OU=base,DC=xyz as search base. Since it only wants to retrieve an object identified by the DN using that as the base of the search with the scope base feels more appropriate.
Update generic_member_service.rb
@degetz degetz changed the title Fixing find_by_dn issue returing multiple results Fixing find_by_dn issue returning multiple results Jun 29, 2020
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.

1 participant