Skip to content

[Ldap] fail if whoami() is called before saslBind() #58144

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 6, 2024

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented Sep 2, 2024

Q A
Branch? 7.2
Bug fix? yes
New feature? no
Deprecations? no
Issues
License MIT


if (!@ldap_start_tls($h)) {
ldap_unbind($h);
$this->markTestSkipped('Cannot establish an encrypted connection');
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Investigating the failing integration test I found that SASL bind cannot be used when not having a secure connection. Since I didn't find a way to let our LDAP server used in the test have a proper TLS configuration I suggest that we skip tests in those cases.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spent an hour investigating on this and I have the same conclusion. I tried a few things to enable TLS with bitnami/openldap but it would require additional work, more than just turning TLS switch to "on" it seems.

@OskarStark OskarStark changed the title [Ldap] fail if whoami() is called before saslBind() [Ldap] fail if whoami() is called before saslBind() Sep 3, 2024
@OskarStark
Copy link
Contributor

friendly ping @manu0401 as you contributed it in

@fabpot
Copy link
Member

fabpot commented Sep 6, 2024

Thank you @xabbuh.

@fabpot fabpot merged commit 542891f into symfony:7.2 Sep 6, 2024
9 of 10 checks passed
@xabbuh xabbuh deleted the pr-58042 branch September 6, 2024 07:07
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.

5 participants