Topic on Extension talk:LDAPAuthentication2

Error "The supplied credentials could not be authenticated."

9
155.190.21.26 (talkcontribs)

I'm trying to upgrade to MediaWiki 1.40. I have grabbed the latest versions of PluggableAuth, LDAPAuthentication, etc. I updated the configuration as directed for PluggableAuth 6 (using wgPluggableAuth_Config).


When going to the login page, all I get is a message that says "The supplied credentials could not be authenticated."


I saw some old discussions that this was because LDAPAuthentication2 did not support PluggableAuth 6, but looks like the latest verison does. Any advice?

Osnard (talkcontribs)

PluggableAuth 7 (current latest) is fully supported by LDAPAuthentication2.


Please check LDAP_hub#Debugging on how to set up logs and use the CheckLogin.php maintenance script from LDAPProvider to verify your configuration.

Mri irm (talkcontribs)

I am facing the same issue. Mediawiki 1.39 LDAPAuthentication2 2.0.1 and PluggableAuth 7.0.0. No login form, only the error message "The supplied credentials could not be authenticated". The CheckLogin.php maintenance Script is running without problems and results in "OK". The debug options seem to have no effect is there something else to configure?

155.190.21.26 (talkcontribs)

I have also run the CheckLogin.php, which results in OK. I have configured an LDAP.log, but it never gets created. It used to when I debugged the previous versions for issues.

155.190.21.26 (talkcontribs)

Well I got further along by downloading specific versions of all the LDAP components. It appears that when you use the download tool and select MediaWiki 1.40, you are not getting compatable versions. Here is what I have currently:

MediaWiki 1.40

PHP 8.2.4

MariaDB 10.4.28

LDAP Authenticaiton2 3.0.0-alpha

LDAPAuthorization 2.0.0

LDAPGroups 2.0.0

LDAPProvider 2.0.0

PluggableAuth 7.0.0


Now I am getting a different error. Some say things points to issues with the LDAP extension for PHP, but the CheckLogin.php still works fine. Here is the full error message


[0ac0ee606e106e460649b256] /wiki/Special:PluggableAuthLogin Error: Call to undefined function ldap_connect()

Backtrace:

from D:\Apps\FEWS\Wiki\extensions\LDAPProvider\src\PlatformFunctionWrapper.php(263)

#0 D:\Apps\FEWS\Wiki\extensions\LDAPProvider\src\PlatformFunctionWrapper.php(280): MediaWiki\Extension\LDAPProvider\PlatformFunctionWrapper->connect(string)

#1 D:\Apps\FEWS\Wiki\extensions\LDAPProvider\src\Client.php(127): MediaWiki\Extension\LDAPProvider\PlatformFunctionWrapper::getConnection(string)

#2 D:\Apps\FEWS\Wiki\extensions\LDAPProvider\src\Client.php(115): MediaWiki\Extension\LDAPProvider\Client->makeNewConnection()

#3 D:\Apps\FEWS\Wiki\extensions\LDAPProvider\src\Client.php(366): MediaWiki\Extension\LDAPProvider\Client->init()

#4 D:\Apps\FEWS\Wiki\extensions\LDAPAuthentication2\src\PluggableAuth.php(262): MediaWiki\Extension\LDAPProvider\Client->canBindAs(string, string)

#5 D:\Apps\FEWS\Wiki\extensions\LDAPAuthentication2\src\PluggableAuth.php(122): MediaWiki\Extension\LDAPAuthentication2\PluggableAuth->checkLDAPLogin(string, string, string, NULL, NULL, NULL)

#6 D:\Apps\FEWS\Wiki\extensions\PluggableAuth\includes\PluggableAuthLogin.php(101): MediaWiki\Extension\LDAPAuthentication2\PluggableAuth->authenticate(NULL, string, NULL, NULL, NULL)

#7 D:\Apps\FEWS\Wiki\includes\specialpage\SpecialPage.php(701): MediaWiki\Extension\PluggableAuth\PluggableAuthLogin->execute(NULL)

#8 D:\Apps\FEWS\Wiki\includes\specialpage\SpecialPageFactory.php(1475): SpecialPage->run(NULL)

#9 D:\Apps\FEWS\Wiki\includes\MediaWiki.php(327): MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, RequestContext)

#10 D:\Apps\FEWS\Wiki\includes\MediaWiki.php(923): MediaWiki->performRequest()

#11 D:\Apps\FEWS\Wiki\includes\MediaWiki.php(576): MediaWiki->main()

#12 D:\Apps\FEWS\Wiki\index.php(50): MediaWiki->run()

#13 D:\Apps\FEWS\Wiki\index.php(46): wfIndexMain()

#14 {main}

155.190.21.26 (talkcontribs)

Well that was easy. I forgot to restart my apache server after enabling LDAP on PHP. I switched to the latest version 2.0 with everything and PluggableAuth 7. I recommend hopefully all the LDAP plugins will get updated so that if you download the versions for MediaWiki 1.40 it will actually get you the correct version!

132.168.89.106 (talkcontribs)

I have the same issue. Can you provide the configuration in LocalSettings.php?

189.9.13.89 (talkcontribs)

Hi! I'm having the same issue, it redirects automatically to that error, may you provide your ldap configuration? Thanks!

Osnard (talkcontribs)

Have you enabled the PHP LDAP extension in php.ini?

Reply to "Error "The supplied credentials could not be authenticated.""