Elgg  Version 1.11
Namespaces | Functions | Variables
pam.php File Reference

Go to the source code of this file.

Namespaces

 Elgg\Core
 Activate a plugin or plugins.
 

Functions

 register_pam_handler ($handler, $importance="sufficient", $policy="user")
 Register a PAM handler. More...
 
 unregister_pam_handler ($handler, $policy="user")
 Unregisters a PAM handler. More...
 

Variables

global $_PAM_HANDLERS = array()
 

Function Documentation

register_pam_handler (   $handler,
  $importance = "sufficient",
  $policy = "user" 
)

Register a PAM handler.

A PAM handler should return true if the authentication attempt passed. For a failure, return false or throw an exception. Returning nothing indicates that the handler wants to be skipped.

Note, $handler must be string callback (not an array/Closure).

Parameters
string$handlerCallable global handler function in the format () pam_handler($credentials = null);
string$importanceThe importance - "sufficient" (default) or "required"
string$policyThe policy type, default is "user"
Returns
bool

Definition at line 42 of file pam.php.

unregister_pam_handler (   $handler,
  $policy = "user" 
)

Unregisters a PAM handler.

Parameters
string$handlerThe PAM handler function name
string$policyThe policy type, default is "user"
Returns
void
Since
1.7.0

Definition at line 72 of file pam.php.

Variable Documentation

$_PAM_HANDLERS = array()

Definition at line 23 of file pam.php.