Added support for usercreation from Moodle to authentication module.

Works currently only with ldap-module (tested with e-directory), but
 other modules could be extended too by
adding following functions:

function auth_user_exists ($username) {
//returns true if given username  already exists on authetication database
}

function auth_user_create ($userobject,$plainpass) {
//create new user to authentication database
//in inactive state (if posible)
//returns true if user is created
}
function auth_user_activate ($username) {
//activate external user  after email-address is confirmed
//returns true if user is activated
}
This commit is contained in:
paca70 2003-02-20 21:39:51 +00:00
parent 47623d4f8f
commit 5f2c35db18
10 changed files with 175 additions and 29 deletions

View file

@ -21,7 +21,7 @@
$starttime = microtime();
require_once("../config.php");
require_once("/usr/local/moodle/config.php");
echo "<PRE>\n";