Topic on Project:Support desk

MediaWiki 1.31 and Active Directory

5
Packetboxer (talkcontribs)

I've tried a variety of extensions and configurations to incorporate Active Directory in to MediaWiki so users can use their AD accounts to authenticate. Unfortunately I've had no luck so far; some posts have stated AD authentication is broken post 1.27, however it sounds like basic authentication should still be working. I've tried using LDAP Authentication and PluggableAuth but neither seem to work after setting up domain controller details. I'm not familiar with integrating something like MediaWiki with AD, so I'm working on the assumption after the extension is installed I modify LocalSettings.php and add the domain/domain controller specifics to the LDAP Authentication section. I've also included a domain admin user and password which I assume would be required to query AD and return the result of the authentication attempt.

Is there any step by step or guide that provides details for linking Active Directory to MW 1.31?

217.100.39.178 (talkcontribs)

Same here! I'd love to receive some proper instructions.

62.14.255.236 (talkcontribs)

+1 there is no freaking way to make this work....

AhmadF.Cheema (talkcontribs)
87.248.17.15 (talkcontribs)

Hi i have setup MW 1.31 and i got to this error:

LDAP bind is successful it's the group sync that's not working.


[exception] [5c0fc20ec0b8d620f8fe6aa7] /index.php?title=Spesial:Logg_inn&returnto=Forside   BadMethodCallException from line 324 of /var/www/mediawiki/extensions/LdapAuth/src/Groups/LdapGroupSync.php: Not yet implemented.

#0 /var/www/mediawiki/extensions/LdapAuth/src/Groups/LdapGroupSync.php(214): Shanept\LdapAuth\Groups\LdapGroupSync->doGroupMapUsingChain(Symfony\Component\Ldap\Entry)

#1 /var/www/mediawiki/extensions/LdapAuth/src/Groups/LdapGroupSync.php(94): Shanept\LdapAuth\Groups\LdapGroupSync->fetchData()

#2 /var/www/mediawiki/extensions/LdapAuth/src/Auth/PrimaryAuthenticationProvider.php(188): Shanept\LdapAuth\Groups\LdapGroupSync->map()

#3 [internal function]: Shanept\LdapAuth\Auth\PrimaryAuthenticationProvider->postAuthentication(User, MediaWiki\Auth\AuthenticationResponse)

#4 /var/www/mediawiki/includes/auth/AuthManager.php(2429): call_user_func_array(array, array)

#5 /var/www/mediawiki/includes/auth/AuthManager.php(693): MediaWiki\Auth\AuthManager->callMethodOnProviders(integer, string, array)

#6 /var/www/mediawiki/includes/auth/AuthManager.php(383): MediaWiki\Auth\AuthManager->continueAuthentication(array)

#7 /var/www/mediawiki/includes/specialpage/AuthManagerSpecialPage.php(353): MediaWiki\Auth\AuthManager->beginAuthentication(array, string)

#8 /var/www/mediawiki/includes/specialpage/AuthManagerSpecialPage.php(482): AuthManagerSpecialPage->performAuthenticationStep(string, array)


it's this function:


/**

* Set up a group map for the user using chained groups.

* See http://ldapwiki.com/wiki/1.2.840.113556.1.4.1941

*

* @param \Symfony\Component\Ldap\Entry $data Ldap query results for user

*/

protected function doGroupMapUsingChain( $data ) {

throw new \BadMethodCallException( 'Not yet implemented.' );

}

}


Reply to "MediaWiki 1.31 and Active Directory"