AuthMoodle: Difference between revisions

From MoodleDocs
Line 20: Line 20:
  $wgAuth->setAuthMoodleUser('yourdbuser');
  $wgAuth->setAuthMoodleUser('yourdbuser');
  $wgAuth->setAuthMoodlePassword('yourdbpass');
  $wgAuth->setAuthMoodlePassword('yourdbpass');
==Bugs with AuthMoodle in mediawiki 1.7==
* preferences are no longer sticky (they pretend to save but don't really save)
* the moodle database prefix is different from the mediawiki database prefix must match (or be blank)
* patches noted above

Revision as of 18:09, 10 August 2006

AuthMoodle.php


quoting Martin's instructions based on the root folder of the wikimedia installation:

Save it in extensions/AuthMoodle.php.
Then you just put this in LocalSettings.php:
require_once( 'extensions/AuthMoodle.php' );
$wgAuth = new AuthMoodle();
$wgAuth->setAuthMoodleTablePrefix();
$wgAuth->setAuthMoodleDBServer('yoursite.org');
$wgAuth->setAuthMoodleDBName('yourdb');
$wgAuth->setAuthMoodleUser('yourdbuser');
$wgAuth->setAuthMoodlePassword('yourdbpass');

Bugs with AuthMoodle in mediawiki 1.7

  • preferences are no longer sticky (they pretend to save but don't really save)
  • the moodle database prefix is different from the mediawiki database prefix must match (or be blank)
  • patches noted above