Go to the source code of this file.
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 | $handler | Callable global handler function in the format () pam_handler($credentials = null); |
string | $importance | The importance - "sufficient" (default) or "required" |
string | $policy | The 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 | $handler | The PAM handler function name |
string | $policy | The policy type, default is "user" |
- Returns
- void
- Since
- 1.7.0
Definition at line 72 of file pam.php.