OpenID for MediaWiki version 1.15.5, 1.17 [SOLVED]
This is an issue because the 'latest' OpenID release (svn) relies on features in version 1.18+ of MW. However, the latest release of OpenID has a convenient Makefile for pulling in (and patching) the required php libs.
You can get round this issue by grabbing a *snapshot* for 1.17 [1], saved as "extensions/OpenID" AND the svn release, saved as "extensions/OpenID-svn". Grab the SVN version like this:
svn co http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/OpenID/ extensions/OpenID-svn
Follow the install instructions in the OpenID-svn to pull (and patch) in the required php libs, then simply copy them into the 1.17 snapshot:
cp -r OpenID-svn/Auth/ OpenID/ // updated with information from the follow-up posting. -- Wikinaut 08:08, 12 July 2011 (UTC)
The final step requires you to set up the php include path so that these libs can be found by the script successfully. That's actually easy, so just set:
## Get the right PHP libs for OpenID set_include_path( get_include_path() . PATH_SEPARATOR . 'extensions/OpenID' ); ## Install OpenID include_once("$IP/extensions/OpenID/OpenID.setup.php");
I hope that makes your life easier than mine ;-)
Hi Dmb,
This appears to work for MW 1.15.5 as well, though your copy command is wrong. It should be:
cp -r OpenID-svn/Auth/ OpenID/
Without the recursive flag, the subdirectories of the Auth directory don't get copied, and the extension won't work.
Thanks,
Hello
These instructions work fine with MW 1.17. Thank you!
However, on the first try I got the following error in the web server:
PHP Fatal error: Define Auth_OpenID_RAND_SOURCE as null to continue with an insecure random number generator. in $IP/extensions/OpenID/Auth/OpenID/CryptUtil.php on line 52"
Fixed it replacing the line 23 from: define('Auth_OpenID_RAND_SOURCE', '/dev/urandom); to: define('Auth_OpenID_RAND_SOURCE', NULL);
But I don't know if it is safe, is it? Regards