-
Notifications
You must be signed in to change notification settings - Fork 7.9k
ensure TLS string options are properly inherited (regression) #18547
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
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.
I think this is an improvement. I don't have time to properly verify but based on what was described, it makes sense to me.
Would be probably good to wait @rainerjung to confirm that it fixes issue for him too.
Wow, thanks for taking the hard way. I will rebuild 8.4.7 with this PR on top and run the tests plus our local tests that showed the original problem. I should be able to report back tomorrow. |
The patch has a minor bug, which makes it disfunctional. Instead of
it has to be
Then my simple tests are successful. |
@rainerjung Thanks PR updated (and squashed) |
…ap_start_tls() Regresion introduced in fix for phpGH-17776 - ensure TLS string options are properly inherited workaround to openldap issue https://bugs.openldap.org/show_bug.cgi?id=10337 - fix ldaps/start_tls tests using LDAPNOINIT in ldaps/tls tests
Notice: test coverage is not good, as we can't easily verify this case I start PR #18561 which add tests for this case, but in master only, as it requires for "skipif" to be able to check some global option, which is not allowed by ldap_get_option for now) |
See #18529 regression in 8.3.21 and 8.4.7
This also fix the tests issue
ldaps_basic.phpt
was failing (XFAIL) because of ldap.conf (TLS_CACERT) set in setup-slapd.shldap_start_tls_basic.phpt
was passing because global options not properly inheritedUsing
LDAPNOINIT=1
ensure ldap.conf is not used, so the local cert cannot be verified.