Moodle  2.2.1
http://www.collinsharper.com
auth_plugin_shibboleth Class Reference
Inheritance diagram for auth_plugin_shibboleth:
Collaboration diagram for auth_plugin_shibboleth:

Public Member Functions

 auth_plugin_shibboleth ()
 user_login ($username, $password)
 get_userinfo ($username)
 get_attributes ()
 prevent_local_passwords ()
 is_internal ()
 can_change_password ()
 loginpage_hook ()
 logoutpage_hook ()
 config_form ($config, $err, $user_fields)
 process_config ($config)
 get_first_string ($string)

Detailed Description

Shibboleth authentication plugin.

Definition at line 35 of file auth.php.


Member Function Documentation

Constructor.

Definition at line 40 of file auth.php.

Here is the call graph for this function:

Returns true if this authentication plugin can change the user's password.

Returns:
bool

Reimplemented from auth_plugin_base.

Definition at line 174 of file auth.php.

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.

Parameters:
array$pageAn object containing all the data for this page.

Reimplemented from auth_plugin_base.

Definition at line 225 of file auth.php.

Returns array containg attribute mappings between Moodle and Shibboleth.

Returns:
array

Definition at line 141 of file auth.php.

Here is the caller graph for this function:

get_first_string ( string)

Cleans and returns first of potential many values (multi-valued attributes)

Parameters:
string$stringPossibly multi-valued attribute from Shibboleth

Definition at line 316 of file auth.php.

Here is the caller graph for this function:

get_userinfo ( username)

Returns the user information for 'external' users. In this case the attributes provided by Shibboleth

Returns:
array $result Associative array of user data

Reimplemented from auth_plugin_base.

Definition at line 91 of file auth.php.

Here is the call graph for this function:

Returns true if this authentication plugin is 'internal'.

Returns:
bool

Reimplemented from auth_plugin_base.

Definition at line 164 of file auth.php.

Hook for login page

Reimplemented from auth_plugin_base.

Definition at line 182 of file auth.php.

Hook for logout page

Reimplemented from auth_plugin_base.

Definition at line 195 of file auth.php.

Indicates if password hashes should be stored in local moodle database.

Returns:
bool true means md5 password hash stored in user table, false means flag 'not_cached' stored there instead

Reimplemented from auth_plugin_base.

Definition at line 155 of file auth.php.

process_config ( config)

Processes and stores configuration data for this authentication plugin.

Parameters:
object$configConfiguration object

Reimplemented from auth_plugin_base.

Definition at line 235 of file auth.php.

Here is the call graph for this function:

user_login ( username,
password 
)

Returns true if the username and password work and false if they are wrong or don't exist.

Parameters:
string$usernameThe username (with system magic quotes)
string$passwordThe password (with system magic quotes)
Returns:
bool Authentication success or failure.

Reimplemented from auth_plugin_base.

Definition at line 53 of file auth.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations