From: moodler Date: Thu, 24 Apr 2003 15:01:15 +0000 (+0000) Subject: New authentication method - a very simple one called "manual". X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=88478a664f9c2e7f8f78dd3d436ee3fd92aafb3b;p=moodle.git New authentication method - a very simple one called "manual". Accounts have to exist in the internal database, and there is no way to create an account on the site - admins have to do it. --- diff --git a/auth/README b/auth/README index 6262f643bd..2eda1f668f 100644 --- a/auth/README +++ b/auth/README @@ -31,6 +31,11 @@ none - no authentication at all .. very insecure!! - 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 diff --git a/auth/manual/config.html b/auth/manual/config.html new file mode 100644 index 0000000000..57c87aaf59 --- /dev/null +++ b/auth/manual/config.html @@ -0,0 +1,11 @@ + +

: + + + + + + + + + diff --git a/auth/manual/lib.php b/auth/manual/lib.php new file mode 100644 index 0000000000..0dce1fc88e --- /dev/null +++ b/auth/manual/lib.php @@ -0,0 +1,16 @@ +password == md5($password)); + } + + return false; +} + + +?> diff --git a/lang/en/auth.php b/lang/en/auth.php index 91587498dc..3a79d955b7 100644 --- a/lang/en/auth.php +++ b/lang/en/auth.php @@ -38,6 +38,8 @@ $string['auth_ldapdescription'] = "This method provides authentication against a password are checked."; $string['auth_ldapextrafields'] = "These fields are optional. You can choose to pre-fill some Moodle user fields with information from the LDAP fields that you specify here.

If you leave these fields blank, then nothing will be transferred from LDAP and Moodle defaults will be used instead.

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)";