Auth Radius overwrites PEAR Auth to perform Radius authentication with specific ILIAS options.
More...
Protected Member Functions |
| | loginObserver ($a_username) |
| | Called from base class after successful login.
|
| | failedLoginObserver () |
| | Called from base class after failed login.
|
Detailed Description
Auth Radius overwrites PEAR Auth to perform Radius authentication with specific ILIAS options.
- Author
- Stefan Meyer smeye.nosp@m.r@da.nosp@m.tabay.nosp@m..de
- Version
- $Id$
Definition at line 36 of file class.ilAuthRadius.php.
Constructor & Destructor Documentation
| ilAuthRadius::__construct |
( |
|
$a_options | ) |
|
Definition at line 44 of file class.ilAuthRadius.php.
References $ilLog, initSettings(), ilRadiusSettings\RADIUS_CHARSET_LATIN1, and setCallbacks().
{
{
#$_POST['username'] = utf8_decode($_POST['username']);
$_POST['password'] = utf8_decode($_POST['password']);
$this->log->write(__METHOD__.': Decoded username and password to latin1.');
}
if(is_array($a_options))
{
$options = array_merge($this->radius_settings->toPearAuthArray(),$a_options);
}
else
{
$options = $this->radius_settings->toPearAuthArray();
}
parent::Auth('RADIUS',$options,'',false);
}
Member Function Documentation
| ilAuthRadius::failedLoginObserver |
( |
| ) |
|
|
protected |
Called from base class after failed login.
- Parameters
-
Definition at line 140 of file class.ilAuthRadius.php.
{
#$this->log->write($this->logCache);
$this->logCache = '';
}
| ilAuthRadius::forceCreation |
( |
|
$a_status | ) |
|
Force creation of user accounts.
public
- Parameters
-
Definition at line 83 of file class.ilAuthRadius.php.
{
$this->force_creation = true;
}
| ilAuthRadius::initAttributeToUser |
( |
| ) |
|
|
private |
| ilAuthRadius::initSettings |
( |
| ) |
|
|
private |
| ilAuthRadius::loginObserver |
( |
|
$a_username | ) |
|
|
protected |
| ilAuthRadius::setCallbacks |
( |
| ) |
|
|
private |
Set callback function for PEAR Auth.
Definition at line 163 of file class.ilAuthRadius.php.
Referenced by __construct().
{
$this->setLoginCallback(array($this,'loginObserver'));
$this->setFailedLoginCallback(array($this,'failedLoginObserver'));
}
Field Documentation
| ilAuthRadius::$force_creation = false |
|
private |
| ilAuthRadius::$log = null |
|
private |
| ilAuthRadius::$rad_to_user = null |
|
private |
| ilAuthRadius::$radius_settings = null |
|
private |
The documentation for this class was generated from the following file: