|
Moodle
2.2.1
http://www.collinsharper.com
|


Public Member Functions | |
| auth_plugin_cas () | |
| prevent_local_passwords () | |
| user_login ($username, $password) | |
| is_internal () | |
| can_change_password () | |
| loginpage_hook () | |
| prelogout_hook () | |
| connectCAS () | |
| config_form ($config, $err, $user_fields) | |
| validate_form (&$form, &$err) | |
| change_password_url () | |
| process_config ($config) | |
| iscreator ($username) | |
| get_userinfo ($username) | |
| sync_users ($do_updates=true) | |
| auth_plugin_cas | ( | ) |
Returns true if this authentication plugin can change the user's password.
Reimplemented from auth_plugin_ldap.
Returns the URL for changing the user's pw, or empty if the default can be used.
Reimplemented from auth_plugin_ldap.
| config_form | ( | $ | config, |
| $ | err, | ||
| $ | user_fields | ||
| ) |
Prints a form for configuring this authentication plugin.
This function is called from admin/auth.php, and outputs a full page with a form for configuring this plugin.
| array | $page | An object containing all the data for this page. |
Reimplemented from auth_plugin_ldap.
| connectCAS | ( | ) |
| get_userinfo | ( | $ | username | ) |
Reads user information from LDAP and returns it as array()
If no LDAP servers are configured, user information has to be provided via other methods (CSV file, manually, etc.). Return an empty array so existing user info is not lost. Otherwise, calls parent class method to get user info.
| string | $username | username |
Reimplemented from auth_plugin_ldap.
| is_internal | ( | ) |
Returns true if this authentication plugin is 'internal'.
Reimplemented from auth_plugin_ldap.
| iscreator | ( | $ | username | ) |
Returns true if user should be coursecreator.
| mixed | $username | username (without system magic quotes) |
Reimplemented from auth_plugin_ldap.
Definition at line 362 of file auth.php.

| loginpage_hook | ( | ) |
Authentication choice (CAS or other) Redirection to the CAS form or to login/index.php for other authentication
Reimplemented from auth_plugin_ldap.
Definition at line 81 of file auth.php.

| prelogout_hook | ( | ) |
Logout from the CAS
Reimplemented from auth_plugin_base.
Definition at line 150 of file auth.php.

Indicates if password hashes should be stored in local moodle database.
Reimplemented from auth_plugin_ldap.
| process_config | ( | $ | config | ) |
Processes and stores configuration data for this authentication plugin.
Reimplemented from auth_plugin_ldap.
Definition at line 238 of file auth.php.

| sync_users | ( | $ | do_updates = true | ) |
Syncronizes users from LDAP server to moodle user table.
If no LDAP servers are configured, simply return. Otherwise, call parent class method to do the work.
| bool | $do_updates | will do pull in data updates from LDAP if relevant |
Reimplemented from auth_plugin_ldap.
| user_login | ( | $ | username, |
| $ | password | ||
| ) |
Authenticates user against CAS Returns true if the username and password work and false if they are wrong or don't exist.
| string | $username | The username (with system magic quotes) |
| string | $password | The password (with system magic quotes) |
Reimplemented from auth_plugin_ldap.
Definition at line 52 of file auth.php.

| validate_form | ( | &$ | form, |
| &$ | err | ||
| ) |
A chance to validate form data, and last chance to do stuff before it is inserted in config_plugin
| object | object with submitted configuration settings (without system magic quotes) | |
| array | $err | array of error messages |
Reimplemented from auth_plugin_base.