I have set up a MediaWiki container which uses a MySQL container for its database. I’m attempting to set up LDAP authentication (https://www.mediawiki.org/wiki/Extension:LDAPAuthentication2). I am able to get the prerequisites LDAPProvider and PluggableAuth installed and verified on the Special:Version page, but as soon as I try to enable LDAPAuthentication2 the page bombs out. I figured out that I needed to either configure a json file (which I did not do) or enter $LDAPProviderDomainConfigProvider in my LocalSettings.php (which I did). Now I’m getting the error “Call to undefined function ldap_connect()”. I googled and it seems that the LDAP stack is not installed with PHP by default, and you need to edit PHP.ini to include “–with-ldap[=DIR]”. Firstly, I’m not entirely sure what directory I need to enter, but more importantly I cannot seem to find a PHP.ini anywhere in the Wediawiki Docker container.
Where do I need to go in order to modify PHP to enable LDAP, or do I actually need to install the PHP LDAP module into the container to get this to work?