I have mediawiki 1.34.2 on fedora 32 with apache 2.4.43, mysql 8.0.21 and php 7.4.8. I installed ldapprovider, pluggableauth and ldapauthentication2; autocreate account set to true and have a json file with my ldap config (domain controller, base dn, etc. and hope it's correct).
When I try to login using a domain account, I get this...
[XzK0s3@C7oXFuPP8oKdn6QAAAIc] /index.php?title=Special:PluggableAuthLogin Error from line 244 of /var/www/html/extensions/LDAPProvider/src/PlatformFunctionWrapper.php: Call to undefined function ldap_connect()
Backtrace:
#0 /var/www/html/extensions/LDAPProvider/src/PlatformFunctionWrapper.php(261): MediaWiki\Extension\LDAPProvider\PlatformFunctionWrapper->connect()
#1 /var/www/html/extensions/LDAPProvider/src/Client.php(100): MediaWiki\Extension\LDAPProvider\PlatformFunctionWrapper::getConnection()
#2 /var/www/html/extensions/LDAPProvider/src/Client.php(88): MediaWiki\Extension\LDAPProvider\Client->makeNewConnection()
#3 /var/www/html/extensions/LDAPProvider/src/Client.php(329): MediaWiki\Extension\LDAPProvider\Client->init()
#4 /var/www/html/extensions/LDAPAuthentication2/src/PluggableAuth.php(77): MediaWiki\Extension\LDAPProvider\Client->canBindAs()
#5 /var/www/html/extensions/PluggableAuth/includes/PluggableAuthLogin.php(30): MediaWiki\Extension\LDAPAuthentication2\PluggableAuth->authenticate()
#6 /var/www/html/includes/specialpage/SpecialPage.php(575): PluggableAuthLogin->execute()
#7 /var/www/html/includes/specialpage/SpecialPageFactory.php(611): SpecialPage->run()
#8 /var/www/html/includes/MediaWiki.php(296): MediaWiki\Special\SpecialPageFactory->executePath()
#9 /var/www/html/includes/MediaWiki.php(900): MediaWiki->performRequest()
#10 /var/www/html/includes/MediaWiki.php(527): MediaWiki->main()
#11 /var/www/html/index.php(44): MediaWiki->run()
#12 {main}
I went over the pluggableauth configuration section and didn't see the need to add any options there as the defaults are fine. Could this be a php incompatibility since the latest version (5.7) is dated 2018?