Auth_RADIUS
[ class tree: Auth_RADIUS ] [ index: Auth_RADIUS ] [ all elements ]

Class: Auth_RADIUS_CHAP_MD5

Source Location: /Auth_RADIUS-1.0.7/RADIUS.php

Class Overview

PEAR
   |
   --Auth_RADIUS
      |
      --Auth_RADIUS_PAP
         |
         --Auth_RADIUS_CHAP_MD5

class Auth_RADIUS_CHAP_MD5


Variables

Methods


Child classes:

Auth_RADIUS_MSCHAPv1
class Auth_RADIUS_MSCHAPv1

Inherited Variables

Inherited Methods

Class: Auth_RADIUS_PAP

Auth_RADIUS_PAP::Auth_RADIUS_PAP()
Constructor
Auth_RADIUS_PAP::createRequest()
Creates an authentication request
Auth_RADIUS_PAP::open()
Creates a RADIUS resource
Auth_RADIUS_PAP::putAuthAttributes()
Put authentication specific attributes

Class: Auth_RADIUS

Auth_RADIUS::Auth_RADIUS()
Constructor
Auth_RADIUS::addServer()
Adds a RADIUS server to the list of servers for requests.
Auth_RADIUS::close()
Frees resources.
Auth_RADIUS::createRequest()
Overwrite this.
Auth_RADIUS::dumpAttributes()
Prints known attributes received from the server.
Auth_RADIUS::getAttributes()
Reads all received attributes after sending the request.
Auth_RADIUS::getError()
Returns an error message, if an error occurred.
Auth_RADIUS::open()
Overwrite this.
Auth_RADIUS::putAttribute()
Puts an attribute.
Auth_RADIUS::putAuthAttributes()
Puts custom attributes.
Auth_RADIUS::putConfigfile()
Configures the radius library via external configurationfile
Auth_RADIUS::putServer()
Configures the radius library.
Auth_RADIUS::putStandardAttributes()
Puts standard attributes.
Auth_RADIUS::putVendorAttribute()
Puts a vendor-specific attribute.
Auth_RADIUS::send()
Sends a prepared RADIUS request and waits for a response
Auth_RADIUS::setConfigfile()
Sets the configuration-file.
Auth_RADIUS::start()
Initiates a RADIUS request.

Class Details

[line 644]
class Auth_RADIUS_CHAP_MD5

Class for authenticating using CHAP-MD5 see RFC1994. Instead og the plaintext password the challenge and the response are needed.



[ Top ]


Class Variables

$challenge =  null

[line 650]

8 Bytes binary challenge

Type:   string


[ Top ]

$chapid =  1

[line 662]

Id of the authentication request. Should incremented after every request.

Type:   integer


[ Top ]

$response =  null

[line 656]

16 Bytes MD5 response binary

Type:   string


[ Top ]



Method Detail

Auth_RADIUS_CHAP_MD5 (Constructor)   [line 672]

void Auth_RADIUS_CHAP_MD5( [string $username = null], [string $challenge = null], [integer $chapid = 1])

Constructor

Parameters:

string   $username     Username
string   $challenge     8 Bytes Challenge (binary)
integer   $chapid     Requestnumber

[ Top ]

close   [line 710]

void 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

Overridden in child classes as:

Auth_RADIUS_MSCHAPv2::close()
Frees resources.

Overrides Auth_RADIUS::close() (Frees resources.)
[ Top ]

putAuthAttributes   [line 688]

void putAuthAttributes( )

Put CHAP-MD5 specific attributes

For authenticating using CHAP-MD5 via RADIUS you have to put the challenge and the response. The chapid is inserted in the first byte of the response.


Overridden in child classes as:

Auth_RADIUS_MSCHAPv1::putAuthAttributes()
Put MS-CHAPv1 specific attributes
Auth_RADIUS_MSCHAPv2::putAuthAttributes()
Put MS-CHAPv2 specific attributes

Overrides Auth_RADIUS_PAP::putAuthAttributes() (Put authentication specific attributes)
[ Top ]


Documentation generated on Mon, 25 Oct 2010 14:30:29 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.