PHP Builder Image LDAP Certificate errors in Openshift Container Platform 3

Solution Verified - Updated -

Issue

The PHP s2i builder image has OpenLDAP built in. The Active directory self signed certificate causes issues for PHP applications. On RHEL, the solution is to append the line below into /etc/openldap/ldap.conf.

TLS_REQCERT     allow

With s2i, it doesn't seem possible to inject this as a part of the build process via composer.json or via httpd-pre-init. The file is write protected, so attempting to change the file fails. How can this be accomplished using s2i?

Environment

Red Hat Openshift Container Platform 3.X

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.