Skip to content

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
@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