[Mediawiki-l] How to export user password from Mediawiki MySQL database to OpenLDAP

Alexis Moinet alexis.moinet at fpms.ac.be
Fri Aug 24 07:42:17 UTC 2007

Yifan (Eric) Jiang wrote :
> So is there means it is almost impossible to export the user password from Mediawiki to OpenLDAP by just copy and paste the hash string?

It is possible only if you copy/paste the hash string and users id from Mediawiki to OpenLDAP and then you use Mediawiki wfEncryptPassword() function to check users at login time (be careful, Mediawiki code is GPL licensed !!! so either you're working with 
GPL or you'll need to rewrite a function that does the same hash, which is not that complicated)

Note that if what you want to do is using LDAP within Mediawiki, there already is an extension doing that : http://www.mediawiki.org/wiki/Extension:LDAP_Authentication

More information about the MediaWiki-l mailing list