Mediawiki Active Directory Authentication
By makeaweli
- 1 minutes read - 103 wordsInstalling LDAP_Authentication AD authentication extension for mediawiki was a nightmare.
Installing LDAP_Authentication Extension
cd into the wiki’s extensions directory.
Clone the extension’s git master:
<br /> git clone https://gerrit.wikimedia.org/r/p/mediawiki/extensions/LdapAuthentication.git<br />
MySQL Configuration
Normally you need to run the update.php script after installing an extension. However, this extension errors out.
After reading the source, all it does is create a new database table. So just copy and paste the .sql file in the extension’s directory into a mysql console.
Extension Configuration
As with all things openldap adapted to work with AD, configuration was a major PITA.
Open up LocalSettings.php and paste in the following: