Skip to content

[Ldap] Fixed issue with legacy find() method not working as expected #19980

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

Merged
merged 1 commit into from
Sep 23, 2016
Merged

[Ldap] Fixed issue with legacy find() method not working as expected #19980

merged 1 commit into from
Sep 23, 2016

Conversation

csarrazi
Copy link
Contributor

Q A
Branch? 3.1
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #19804
License MIT
Doc PR

This PR fixes two bugs. The first, with the legacy LdapClient class' find() method not working as expected, sometimes throwing errors, which is an after-effect of missing Ldap attributes normalisation in the ResultIterator, and the second one being that the find() method does not return the expected output, which should be the same as PHP's ldap_get_entries() method.

As a reminder, this method should only be used by legacy software, which need to provide compatibility with Symfony 3.0 and Symfony 2.8.

@csarrazi
Copy link
Contributor Author

Failing tests are not related to this PR.

@elementaire
Copy link
Contributor

This is ok for me 👍

Status: Reviewed

@fabpot
Copy link
Member

fabpot commented Sep 23, 2016

Thank you @csarrazi.

@fabpot fabpot merged commit 3bae5ea into symfony:3.1 Sep 23, 2016
fabpot added a commit that referenced this pull request Sep 23, 2016
…s expected (csarrazi)

This PR was merged into the 3.1 branch.

Discussion
----------

[Ldap] Fixed issue with legacy find() method not working as expected

| Q             | A
| ------------- | ---
| Branch?       | 3.1
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #19804
| License       | MIT
| Doc PR        |

This PR fixes two bugs. The first, with the legacy `LdapClient` class' `find()` method not working as expected, sometimes throwing errors, which is an after-effect of missing Ldap attributes normalisation in the ResultIterator, and the second one being that the `find()` method does not return the expected output, which should be the same as PHP's `ldap_get_entries()` method.

As a reminder, this method should only be used by legacy software, which need to provide compatibility with Symfony 3.0 and Symfony 2.8.

Commits
-------

3bae5ea Fixed issue with legacy find() method not working as expected
@fabpot fabpot mentioned this pull request Oct 3, 2016
@csarrazi csarrazi deleted the fix/ldap-wrong-attribute-format branch July 31, 2017 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants