ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
Auth_RADIUS_MSCHAPv1 Class Reference
+ Inheritance diagram for Auth_RADIUS_MSCHAPv1:
+ Collaboration diagram for Auth_RADIUS_MSCHAPv1:

Public Member Functions

 putAuthAttributes ()
 Put MS-CHAPv1 specific attributes.
- Public Member Functions inherited from Auth_RADIUS_CHAP_MD5
 Auth_RADIUS_CHAP_MD5 ($username=null, $challenge=null, $chapid=1)
 Constructor.
 close ()
 Frees resources.
- Public Member Functions inherited from Auth_RADIUS_PAP
 Auth_RADIUS_PAP ($username=null, $password=null)
 Constructor.
 open ()
 Creates a RADIUS resource.
 createRequest ()
 Creates an authentication request.
- Public Member Functions inherited from Auth_RADIUS
 Auth_RADIUS ()
 Constructor.
 addServer ($servername= 'localhost', $port=0, $sharedSecret= 'testing123', $timeout=3, $maxtries=3)
 Adds a RADIUS server to the list of servers for requests.
 getError ()
 Returns an error message, if an error occurred.
 setConfigfile ($file)
 Sets the configuration-file.
 putAttribute ($attrib, $value, $type=null)
 Puts an attribute.
 putVendorAttribute ($vendor, $attrib, $value, $type=null)
 Puts a vendor-specific attribute.
 dumpAttributes ()
 Prints known attributes received from the server.
 putStandardAttributes ()
 Puts standard attributes.
 putServer ($servername, $port=0, $sharedsecret= 'testing123', $timeout=3, $maxtries=3)
 Configures the radius library.
 putConfigfile ($file)
 Configures the radius library via external configurationfile.
 start ()
 Initiates a RADIUS request.
 send ()
 Sends a prepared RADIUS request and waits for a response.
 getAttributes ()
 Reads all received attributes after sending the request.
- Public Member Functions inherited from PEAR
 PEAR ($error_class=null)
 Constructor.
 _PEAR ()
 Destructor (the emulated type of...).
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.
 registerShutdownFunc ($func, $args=array())
 Use this function to register a shutdown method for static classes.
 isError ($data, $code=null)
 Tell whether a value is a PEAR error.
 setErrorHandling ($mode=null, $options=null)
 Sets how errors generated by this object should be handled.
 expectError ($code= '*')
 This method is used to tell which errors you expect to get.
 popExpect ()
 This method pops one element off the expected error codes stack.
 _checkDelExpect ($error_code)
 This method checks unsets an error code if available.
 delExpect ($error_code)
 This method deletes all occurences of the specified element from the expected error codes stack.
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.
throwError ($message=null, $code=null, $userinfo=null)
 Simpler form of raiseError with fewer options.
 staticPushErrorHandling ($mode, $options=null)
 staticPopErrorHandling ()
 pushErrorHandling ($mode, $options=null)
 Push a new error handler on top of the error handler options stack.
 popErrorHandling ()
 Pop the last error handler used.
 loadExtension ($ext)
 OS independant PHP extension load.

Data Fields

 $lmResponse = null
 $flags = 1
- Data Fields inherited from Auth_RADIUS_CHAP_MD5
 $challenge = null
 $response = null
 $chapid = 1

Detailed Description

Definition at line 726 of file RADIUS.php.

Member Function Documentation

Auth_RADIUS_MSCHAPv1::putAuthAttributes ( )

Put MS-CHAPv1 specific attributes.

For authenticating using MS-CHAPv1 via RADIUS you have to put the challenge and the response. The response has this structure: struct rad_mschapvalue { u_char ident; u_char flags; u_char lm_response[24]; u_char response[24]; };

Returns
void

Reimplemented from Auth_RADIUS_CHAP_MD5.

Reimplemented in Auth_RADIUS_MSCHAPv2.

Definition at line 755 of file RADIUS.php.

References Auth_RADIUS\putAttribute(), and Auth_RADIUS\putVendorAttribute().

{
if (isset($this->username)) {
$this->putAttribute(RADIUS_USER_NAME, $this->username);
}
if (isset($this->response) || isset($this->lmResponse)) {
$lmResp = isset($this->lmResponse) ? $this->lmResponse : str_repeat ("\0", 24);
$ntResp = isset($this->response) ? $this->response : str_repeat ("\0", 24);
$resp = pack('CC', $this->chapid, $this->flags) . $lmResp . $ntResp;
$this->putVendorAttribute(RADIUS_VENDOR_MICROSOFT, RADIUS_MICROSOFT_MS_CHAP_RESPONSE, $resp);
}
if (isset($this->challenge)) {
$this->putVendorAttribute(RADIUS_VENDOR_MICROSOFT, RADIUS_MICROSOFT_MS_CHAP_CHALLENGE, $this->challenge);
}
}

+ Here is the call graph for this function:

Field Documentation

Auth_RADIUS_MSCHAPv1::$flags = 1

Definition at line 739 of file RADIUS.php.

Auth_RADIUS_MSCHAPv1::$lmResponse = null

Definition at line 732 of file RADIUS.php.


The documentation for this class was generated from the following file: