Aquesta pàgina forma part de la documentació de Moodle en català, tot i que no ha estat traduïda encara. Podeu contribuir obertament a les tasques de traducció. Podeu consultar la Guia d'edició de la documentació i també participar ens els debats del fòrum de traductors de la documentació a moodle.org

AuthMoodle: diferència entre les revisions

De MoodleDocs
Salta a:navegació, cerca
Línia 5: Línia 5:
* download from http://moodle.org/file.php/5/moddata/forum/366/196104/AuthMoodle.php
* download from http://moodle.org/file.php/5/moddata/forum/366/196104/AuthMoodle.php
* first posted by Martin Dougiamas in april 2006 in http://moodle.org/mod/forum/post.php?reply=196104 as an attachment
* first posted by Martin Dougiamas in april 2006 in http://moodle.org/mod/forum/post.php?reply=196104 as an attachment
* 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 and comment out line 223-226 (refers to a non-existent function)
 


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

Revisió del 04:48, 9 ago 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');