-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
🚧 Fix Start TLS failed, when connecting to LDAP host ldap://ldap.example.tld
on PHP 8.3.21, PHP 8.4.7
#53213
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
Conversation
Signed-off-by: Joas Schilling <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Blocking to make sure this is a workaround in case you are on an affected PHP version.
Maybe we can figure out a reliable way to read out the correct setting from the system, but both Cert and LDAP settings vary across different distributions.
Start TLS failed, when connecting to LDAP host ldap://ldap.example.tld
on PHP 8.3.21, PHP 8.4.7
There was also a feature request to use Nextcloud cert bundle for LDAP as well. Not sure how easy/practical it would be. |
Guess: like this, only that the path is in a configuration setting and only made active if not empty and the file exists and is readable. Most effort would go into testing, but it is mostly chore not challenge imo… trickiest part perhaps DNS, but perhaps that just works out of the box just using the host name within the docker network. |
The feature request was about using the certificates managed through the occ security:certificates commands. |
Still rather opt-in… or only for new installations. At least don't break what exists :) |
Solved by newest PHP update as expected |
The diff might help when after upgrading to PHP 8.3.21 you are faced with:
Checklist