Topic on Extension talk:LdapAuth/Flow

LDAP Login Internal error, Upgarde from MW1.32 to 1.33 gives me this error

9
Sam Madisha (talkcontribs)

[4d35954210787c4a8838eda8] /index.php?title=Special:UserLogin&returnto=Bryte+Wiki TypeError from line 39 of C:\inetpub\wwwroot\mediawiki\includes\auth\PasswordDomainAuthenticationRequest.php: Argument 1 passed to MediaWiki\Auth\PasswordDomainAuthenticationRequest::__construct() must be of the type array, string given, called in C:\inetpub\wwwroot\mediawiki\extensions\LdapAuth\src\Auth\PrimaryAuthenticationProvider.php on line 62

Backtrace:

#0 C:\inetpub\wwwroot\mediawiki\extensions\LdapAuth\src\Auth\PrimaryAuthenticationProvider.php(62): MediaWiki\Auth\PasswordDomainAuthenticationRequest->__construct(string)

#1 C:\inetpub\wwwroot\mediawiki\includes\auth\AuthManager.php(2100): Shanept\LdapAuth\Auth\PrimaryAuthenticationProvider->getAuthenticationRequests(string, array)

#2 C:\inetpub\wwwroot\mediawiki\includes\auth\AuthManager.php(2078): MediaWiki\Auth\AuthManager->getAuthenticationRequestsInternal(string, array, array, User)

#3 C:\inetpub\wwwroot\mediawiki\includes\specialpage\AuthManagerSpecialPage.php(256): MediaWiki\Auth\AuthManager->getAuthenticationRequests(string, User)

#4 C:\inetpub\wwwroot\mediawiki\includes\specialpage\LoginSignupSpecialPage.php(141): AuthManagerSpecialPage->loadAuth(NULL)

#5 C:\inetpub\wwwroot\mediawiki\includes\specialpage\LoginSignupSpecialPage.php(229): LoginSignupSpecialPage->load(NULL)

#6 C:\inetpub\wwwroot\mediawiki\includes\specialpage\SpecialPage.php(569): LoginSignupSpecialPage->execute(NULL)

#7 C:\inetpub\wwwroot\mediawiki\includes\specialpage\SpecialPageFactory.php(558): SpecialPage->run(NULL)

#8 C:\inetpub\wwwroot\mediawiki\includes\MediaWiki.php(288): MediaWiki\Special\SpecialPageFactory->executePath(Title, RequestContext)

#9 C:\inetpub\wwwroot\mediawiki\includes\MediaWiki.php(865): MediaWiki->performRequest()

#10 C:\inetpub\wwwroot\mediawiki\includes\MediaWiki.php(515): MediaWiki->main()

#11 C:\inetpub\wwwroot\mediawiki\index.php(42): MediaWiki->run()

#12 {main}

TrixTri (talkcontribs)

Seems to be a problem in version 0.0.5. It looks like it is coded to require an array for LdapAuthDomainNames and in turn means all your other variables must also. Look for my post "Mediawiki 1.33" for a complete working config Dont follow the instructions on the main page. Make sure to use the entire config as it is and change what is required or you will have errors.

StefanArndtLu (talkcontribs)

Dear Trix Tri,


I have the same problems, and tried it with your config. But I did get the following error report:

/wiki/Mediawiki/index.php?title=Special:UserLogin&returnto=Main+Page Error from line 393 of /var/www/html/wiki/Mediawiki/extensions/LdapAuth/src/Auth/PrimaryAuthenticationProvider.php: Class 'Symfony\Component\Ldap\Ldap' not found

Backtrace:

#0 /var/www/html/wiki/Mediawiki/extensions/LdapAuth/src/Auth/PrimaryAuthenticationProvider.php(110): Shanept\LdapAuth\Auth\PrimaryAuthenticationProvider->connect(Shanept\LdapAuth\Auth\LdapAuthenticationRequest)

#1 /var/www/html/wiki/Mediawiki/extensions/LdapAuth/src/Auth/PrimaryAuthenticationProvider.php(88): Shanept\LdapAuth\Auth\PrimaryAuthenticationProvider->beginPrimaryLdapAuthentication(Shanept\LdapAuth\Auth\LdapAuthenticationRequest)

#2 /var/www/html/wiki/Mediawiki/includes/auth/AuthManager.php(454): Shanept\LdapAuth\Auth\PrimaryAuthenticationProvider->beginPrimaryAuthentication(array)

#3 /var/www/html/wiki/Mediawiki/includes/auth/AuthManager.php(384): MediaWiki\Auth\AuthManager->continueAuthentication(array)

#4 /var/www/html/wiki/Mediawiki/includes/specialpage/AuthManagerSpecialPage.php(353): MediaWiki\Auth\AuthManager->beginAuthentication(array, string)

#5 /var/www/html/wiki/Mediawiki/includes/specialpage/AuthManagerSpecialPage.php(482): AuthManagerSpecialPage->performAuthenticationStep(string, array)

#6 /var/www/html/wiki/Mediawiki/includes/htmlform/HTMLForm.php(660): AuthManagerSpecialPage->handleFormSubmit(array, VFormHTMLForm)

#7 /var/www/html/wiki/Mediawiki/includes/specialpage/AuthManagerSpecialPage.php(416): HTMLForm->trySubmit()

#8 /var/www/html/wiki/Mediawiki/includes/specialpage/LoginSignupSpecialPage.php(313): AuthManagerSpecialPage->trySubmit()

#9 /var/www/html/wiki/Mediawiki/includes/specialpage/SpecialPage.php(569): LoginSignupSpecialPage->execute(NULL)

#10 /var/www/html/wiki/Mediawiki/includes/specialpage/SpecialPageFactory.php(558): SpecialPage->run(NULL)

#11 /var/www/html/wiki/Mediawiki/includes/MediaWiki.php(288): MediaWiki\Special\SpecialPageFactory->executePath(Title, RequestContext)

#12 /var/www/html/wiki/Mediawiki/includes/MediaWiki.php(865): MediaWiki->performRequest()

#13 /var/www/html/wiki/Mediawiki/includes/MediaWiki.php(515): MediaWiki->main()

#14 /var/www/html/wiki/Mediawiki/index.php(42): MediaWiki->run()

#15 {main}

Did you maybe have that error reporting aswell and know a solution by any chance?

TrixTri (talkcontribs)

It seems to be trying to use the Ldap classes provided by Symfony which it cannot find. Make sure composer is installed on your machine and navigate to the LdapAuth extension directory and run the command composer install --no-dev to install the required dependancies.

Pa.tiumentsev (talkcontribs)

Dear TrixTri,

I have the same problem (Class 'Symfony\Component\Ldap\Ldap' not found). I try to do "composer is installed on your machine and navigate to the LdapAuth extension directory and run the command composer install --no-dev" but problem is stell remains. Do you have another thoughts about how to fix it?


TrixTri (talkcontribs)

Out of curiosity, if you run the same command from the wiki base folder rather than the plugin directory does it work? if not try running the command composer require symfony/ldap

Pa.tiumentsev (talkcontribs)

After this command "composer require symfony/ldap" error "Class 'Symfony\Component\Ldap\Ldap' not found" is gone, but when i do "php maintenance/update.php" i see new error :

symfony/ldap: 4.3.0 installed, 4.3 required.

Error: your composer.lock file is not up to date. Run "composer update --no-dev" to install newer dependencies

It gone when change line 59 in file /var/lib/mediawiki/composer.json from "symfony/ldap": "v4.3" to "symfony/ldap": "v4.3.0"

Now when i type my login and password from ldap on media wiki login page it give me error about wrong loggin or password, i think i write wrong config in LocalSettings.php...

Pa.tiumentsev (talkcontribs)

For fix this problem need add line: $wgGroupPermissions['*']['autocreateaccount'] = true; to LocalSettings.php

This post was hidden by StefanArndtLu (history)
Reply to "LDAP Login Internal error, Upgarde from MW1.32 to 1.33 gives me this error"