- when user tries to access a course they
are forced to set up their account details
+manual - internal authentication only
+
+ - user logs in using username and password
+ - no way for user to make their own account
+
ldap - Uses an external LDAP server
--- /dev/null
+<TR VALIGN=TOP>
+ <TD ALIGN=RIGHT><P><? print_string("instructions", "auth") ?>:</TD>
+ <TD>
+ <TEXTAREA NAME=auth_instructions COLS=30 ROWS=10 WRAP=virtual><? p($config->auth_instructions) ?></TEXTAREA>
+ </TD>
+ <TD>
+ <? print_string("authinstructions","auth") ?>
+ <? helpbutton("text", get_string("helptext")) ?>
+ </TD>
+</TR>
+
--- /dev/null
+<?PHP // $Id$
+ // manual method - Just does a simple check against the database
+
+function auth_user_login ($username, $password) {
+// Returns false if the username doesn't exist yet
+// Returns true if the username and password work
+
+ if ($user = get_user_info_from_db("username", $username)) {
+ return ($user->password == md5($password));
+ }
+
+ return false;
+}
+
+
+?>
password are checked.";
$string['auth_ldapextrafields'] = "These fields are optional. You can choose to pre-fill some Moodle user fields with information from the <B>LDAP fields</B> that you specify here. <P>If you leave these fields blank, then nothing will be transferred from LDAP and Moodle defaults will be used instead.<P>In either case, the user will be able to edit all of these fields after they log in.";
$string['auth_ldaptitle'] = "Use an LDAP server";
+$string['auth_manualdescription'] = "This method removes any way for users to create their own accounts. All accounts must be manually created by the admin user.";
+$string['auth_manualtitle'] = "Manual accounts only";
$string['auth_nntpdescription'] = "This method uses an NNTP server to check whether a given username and password is valid.";
$string['auth_nntphost'] = "The NNTP server address. Use the IP number, not DNS name.";
$string['auth_nntpport'] = "Server port (119 is the most common)";