Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing find_by_dn issue returning multiple results #62

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

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.

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