|
ILIAS
release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
|
Inheritance diagram for Auth_RADIUS:
Collaboration diagram for Auth_RADIUS:Public Member Functions | |
| Auth_RADIUS () | |
| Constructor. More... | |
| addServer ($servername='localhost', $port=0, $sharedSecret='testing123', $timeout=3, $maxtries=3) | |
| Adds a RADIUS server to the list of servers for requests. More... | |
| getError () | |
| Returns an error message, if an error occurred. More... | |
| setConfigfile ($file) | |
| Sets the configuration-file. More... | |
| putAttribute ($attrib, $value, $type=null) | |
| Puts an attribute. More... | |
| putVendorAttribute ($vendor, $attrib, $value, $type=null) | |
| Puts a vendor-specific attribute. More... | |
| dumpAttributes () | |
| Prints known attributes received from the server. More... | |
| open () | |
| Overwrite this. More... | |
| createRequest () | |
| Overwrite this. More... | |
| putStandardAttributes () | |
| Puts standard attributes. More... | |
| putAuthAttributes () | |
| Puts custom attributes. More... | |
| putServer ($servername, $port=0, $sharedsecret='testing123', $timeout=3, $maxtries=3) | |
| Configures the radius library. More... | |
| putConfigfile ($file) | |
| Configures the radius library via external configurationfile. More... | |
| start () | |
| Initiates a RADIUS request. More... | |
| send () | |
| Sends a prepared RADIUS request and waits for a response. More... | |
| getAttributes () | |
| Reads all received attributes after sending the request. More... | |
| close () | |
| Frees resources. More... | |
Public Member Functions inherited from PEAR | |
| PEAR ($error_class=null) | |
| Constructor. More... | |
| _PEAR () | |
| Destructor (the emulated type of...). More... | |
| & | getStaticProperty ($class, $var) |
| If you have a class that's mostly/entirely static, and you need static properties, you can use this method to simulate them. More... | |
| registerShutdownFunc ($func, $args=array()) | |
| Use this function to register a shutdown method for static classes. More... | |
| isError ($data, $code=null) | |
| Tell whether a value is a PEAR error. More... | |
| setErrorHandling ($mode=null, $options=null) | |
| Sets how errors generated by this object should be handled. More... | |
| expectError ($code=' *') | |
| This method is used to tell which errors you expect to get. More... | |
| popExpect () | |
| This method pops one element off the expected error codes stack. More... | |
| _checkDelExpect ($error_code) | |
| This method checks unsets an error code if available. More... | |
| delExpect ($error_code) | |
| This method deletes all occurences of the specified element from the expected error codes stack. More... | |
| & | raiseError ($message=null, $code=null, $mode=null, $options=null, $userinfo=null, $error_class=null, $skipmsg=false) |
| This method is a wrapper that returns an instance of the configured error class with this object's default error handling applied. More... | |
| & | throwError ($message=null, $code=null, $userinfo=null) |
| Simpler form of raiseError with fewer options. More... | |
| staticPushErrorHandling ($mode, $options=null) | |
| staticPopErrorHandling () | |
| pushErrorHandling ($mode, $options=null) | |
| Push a new error handler on top of the error handler options stack. More... | |
| popErrorHandling () | |
| Pop the last error handler used. More... | |
| loadExtension ($ext) | |
| OS independant PHP extension load. More... | |
Data Fields | |
| $_servers = array() | |
| $_configfile = null | |
| $res = null | |
| $username = null | |
| $password = null | |
| $attributes = array() | |
| $rawAttributes = array() | |
| $rawVendorAttributes = array() | |
| $useStandardAttributes = true | |
Data Fields inherited from PEAR | |
| $_debug = false | |
| $_default_error_mode = null | |
| $_default_error_options = null | |
| $_default_error_handler = '' | |
| $_error_class = 'PEAR_Error' | |
| $_expected_errors = array() | |
Definition at line 58 of file RADIUS.php.
| Auth_RADIUS::addServer | ( | $servername = 'localhost', |
|
$port = 0, |
|||
$sharedSecret = 'testing123', |
|||
$timeout = 3, |
|||
$maxtries = 3 |
|||
| ) |
Adds a RADIUS server to the list of servers for requests.
At most 10 servers may be specified. When multiple servers are given, they are tried in round-robin fashion until a valid response is received
@access public
| string | $servername | Servername or IP-Address |
| integer | $port | Portnumber |
| string | $sharedSecret | Shared secret |
| integer | $timeout | Timeout for each request |
| integer | $maxtries | Max. retries for each request |
Definition at line 148 of file RADIUS.php.
| Auth_RADIUS::Auth_RADIUS | ( | ) |
Constructor.
Loads the RADIUS PECL/extension
Definition at line 128 of file RADIUS.php.
References PEAR\PEAR().
Referenced by Auth_RADIUS_Acct\Auth_RADIUS_Acct(), and Auth_RADIUS_PAP\Auth_RADIUS_PAP().
Here is the call graph for this function:
Here is the caller graph for this function:| Auth_RADIUS::close | ( | ) |
Frees resources.
Calling this method is always a good idea, because all security relevant attributes are filled with Nullbytes to leave nothing in the mem.
@access public
Reimplemented in Auth_RADIUS_CHAP_MD5, and Auth_RADIUS_MSCHAPv2.
Definition at line 549 of file RADIUS.php.
Referenced by Auth_RADIUS_CHAP_MD5\close().
Here is the caller graph for this function:| Auth_RADIUS::createRequest | ( | ) |
Overwrite this.
@access public
Reimplemented in Auth_RADIUS_PAP, and Auth_RADIUS_Acct.
Definition at line 264 of file RADIUS.php.
Referenced by start().
Here is the caller graph for this function:| Auth_RADIUS::dumpAttributes | ( | ) |
Prints known attributes received from the server.
@access public
Definition at line 243 of file RADIUS.php.
References $data.
| Auth_RADIUS::getAttributes | ( | ) |
Reads all received attributes after sending the request.
This methods stores known attributes in the property attributes, all attributes (including known attibutes) are stored in rawAttributes or rawVendorAttributes. NOTE: call this function also even if the request was rejected, because the Server returns usualy an errormessage
@access public
Definition at line 416 of file RADIUS.php.
| Auth_RADIUS::getError | ( | ) |
Returns an error message, if an error occurred.
@access public
Definition at line 159 of file RADIUS.php.
Referenced by send().
Here is the caller graph for this function:| Auth_RADIUS::open | ( | ) |
Overwrite this.
@access public
Reimplemented in Auth_RADIUS_PAP, and Auth_RADIUS_Acct.
Definition at line 255 of file RADIUS.php.
Referenced by start().
Here is the caller graph for this function:| Auth_RADIUS::putAttribute | ( | $attrib, | |
| $value, | |||
$type = null |
|||
| ) |
Puts an attribute.
@access public
| integer | $attrib | Attribute-number |
| mixed | $port | Attribute-value |
| type | $type | Attribute-type |
Definition at line 185 of file RADIUS.php.
References $attrib.
Referenced by putAuthAttributes(), Auth_RADIUS_PAP\putAuthAttributes(), Auth_RADIUS_CHAP_MD5\putAuthAttributes(), Auth_RADIUS_MSCHAPv1\putAuthAttributes(), Auth_RADIUS_MSCHAPv2\putAuthAttributes(), Auth_RADIUS_Acct\putAuthAttributes(), and putStandardAttributes().
Here is the caller graph for this function:| Auth_RADIUS::putAuthAttributes | ( | ) |
Puts custom attributes.
@access public
Reimplemented in Auth_RADIUS_PAP, Auth_RADIUS_CHAP_MD5, Auth_RADIUS_MSCHAPv1, Auth_RADIUS_MSCHAPv2, and Auth_RADIUS_Acct.
Definition at line 296 of file RADIUS.php.
References putAttribute().
Referenced by start().
Here is the call graph for this function:
Here is the caller graph for this function:| Auth_RADIUS::putConfigfile | ( | $file | ) |
Configures the radius library via external configurationfile.
@access public
| string | $servername | Servername or IP-Address |
Definition at line 330 of file RADIUS.php.
References $file.
Referenced by start().
Here is the caller graph for this function:| Auth_RADIUS::putServer | ( | $servername, | |
$port = 0, |
|||
$sharedsecret = 'testing123', |
|||
$timeout = 3, |
|||
$maxtries = 3 |
|||
| ) |
Configures the radius library.
@access public
| string | $servername | Servername or IP-Address |
| integer | $port | Portnumber |
| string | $sharedSecret | Shared secret |
| integer | $timeout | Timeout for each request |
| integer | $maxtries | Max. retries for each request |
Definition at line 315 of file RADIUS.php.
Referenced by start().
Here is the caller graph for this function:| Auth_RADIUS::putStandardAttributes | ( | ) |
Puts standard attributes.
@access public
Definition at line 273 of file RADIUS.php.
References $_SERVER, $GLOBALS, and putAttribute().
Referenced by start().
Here is the call graph for this function:
Here is the caller graph for this function:| Auth_RADIUS::putVendorAttribute | ( | $vendor, | |
| $attrib, | |||
| $value, | |||
$type = null |
|||
| ) |
Puts a vendor-specific attribute.
@access public
| integer | $vendor | Vendor (MSoft, Cisco, ...) |
| integer | $attrib | Attribute-number |
| mixed | $port | Attribute-value |
| type | $type | Attribute-type |
Definition at line 216 of file RADIUS.php.
References $attrib.
Referenced by Auth_RADIUS_MSCHAPv1\putAuthAttributes(), and Auth_RADIUS_MSCHAPv2\putAuthAttributes().
Here is the caller graph for this function:| Auth_RADIUS::send | ( | ) |
Sends a prepared RADIUS request and waits for a response.
@access public
Definition at line 375 of file RADIUS.php.
References getError(), and PEAR\raiseError().
Here is the call graph for this function:| Auth_RADIUS::setConfigfile | ( | $file | ) |
Sets the configuration-file.
@access public
| string | $file | Path to the configuration file |
Definition at line 171 of file RADIUS.php.
References $file.
| Auth_RADIUS::start | ( | ) |
Initiates a RADIUS request.
@access public
Definition at line 344 of file RADIUS.php.
References createRequest(), open(), putAuthAttributes(), putConfigfile(), putServer(), and putStandardAttributes().
Here is the call graph for this function:| Auth_RADIUS::$_configfile = null |
Definition at line 72 of file RADIUS.php.
| Auth_RADIUS::$_servers = array() |
Definition at line 65 of file RADIUS.php.
| Auth_RADIUS::$attributes = array() |
Definition at line 98 of file RADIUS.php.
| Auth_RADIUS::$password = null |
Definition at line 91 of file RADIUS.php.
Referenced by Auth_RADIUS_PAP\Auth_RADIUS_PAP().
| Auth_RADIUS::$rawAttributes = array() |
Definition at line 105 of file RADIUS.php.
| Auth_RADIUS::$rawVendorAttributes = array() |
Definition at line 112 of file RADIUS.php.
| Auth_RADIUS::$res = null |
Definition at line 79 of file RADIUS.php.
| Auth_RADIUS::$username = null |
Definition at line 85 of file RADIUS.php.
Referenced by Auth_RADIUS_CHAP_MD5\Auth_RADIUS_CHAP_MD5(), and Auth_RADIUS_PAP\Auth_RADIUS_PAP().
| Auth_RADIUS::$useStandardAttributes = true |
Definition at line 119 of file RADIUS.php.