Bug 1076249
| Summary: | Intermittent TLS certificate failures using php54-php-ldap | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Software Collections | Reporter: | Ross Davis <molecularbear> | ||||
| Component: | php | Assignee: | Remi Collet <rcollet> | ||||
| Status: | CLOSED INSUFFICIENT_DATA | QA Contact: | BaseOS QE - Apps <qe-baseos-apps> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | php54 | CC: | jorton | ||||
| Target Milestone: | --- | ||||||
| Target Release: | 2.0 | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2014-11-05 14:54:54 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
|
Description
Ross Davis
2014-03-13 21:59:00 UTC
Thanks for the report. I notice you are using 6.4 packages - if you are able to validate the bug on a 6.5 machine that might be helpful. I cannot see anything pertinent in changes to openldap etc since 6.4 which might affect this, so this is a long shot. I appreciate the response. I was not able to procure the time/resources to try this out on 6.5, but we did find a workaround. Instead of doing the following in `/etc/sysconfig/httpd`: export LDAPTLS_CACERTDIR=/etc/openldap/certs We are now doing this: export LDAPTLS_REQCERT=never That setting appears to "stick", unlike the former. It's certainly not ideal to bypass the certificate check, but pretty minimal risk for my circumstances. Since we don't have a reliable reproduction recipe for this issue, and you have a workaround, I'm going to close this out. If you have further issues please feel free to contact Red Hat Support. After experiencing this problem with updated software (REHL 6.7, php55, httpd24, openldap-2.4.40-6) I reinvestigated and finally figured it out. Our admins had changed the base config in `/etc/openldap/ldap.conf` to: 1) change TLS_CACERTDIR to a custom directory 2) add TLS_CACERT to point to a PEM file in said custom directory My apache startup config was effectively reverting (1) back to the stock openldap config - which is what I wanted. HOWEVER, it turns out I also needed to revert (2) back to stock config for this thing to not get its wires crossed. My `/opt/rh/httpd24/root/etc/sysconfig/httpd` now looks like this: export LDAPTLS_CACERTDIR=/etc/openldap/certs export LDAPTLS_CACERT=/etc/pki/tls/cert.pem My best guess is that there is some scenario where openldap was choosing to use the bad CACERT rather than the good CACERTDIR. By making them both "good", the cert check works regardless of which one it chooses. |