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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content