Note: You are currently viewing documentation for Moodle 4.0. Up-to-date documentation for the latest stable version of Moodle may be available here: AuthMoodle.

AuthMoodle: Difference between revisions

From MoodleDocs
Line 7: Line 7:
* for mediawiki 1.7, I had to change line 33 to '''includes/'''AuthPlugin.php
* for mediawiki 1.7, I had to change line 33 to '''includes/'''AuthPlugin.php


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


  Save it in extensions/AuthMoodle.php.
  Save it in extensions/AuthMoodle.php.

Revision as of 22:42, 8 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');