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

Class: Auth_RADIUS_MSCHAPv2

Source Location: /Auth_RADIUS-1.1.0/Auth/RADIUS.php

Class Overview

Auth_RADIUS
   |
   --Auth_RADIUS_PAP
      |
      --Auth_RADIUS_CHAP_MD5
         |
         --Auth_RADIUS_MSCHAPv1
            |
            --Auth_RADIUS_MSCHAPv2

class Auth_RADIUS_MSCHAPv2


Variables

Methods


Inherited Variables

Inherited Methods

Class: Auth_RADIUS_MSCHAPv1

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

Class: Auth_RADIUS_CHAP_MD5

Auth_RADIUS_CHAP_MD5::__construct()
Constructor
Auth_RADIUS_CHAP_MD5::close()
Frees resources.
Auth_RADIUS_CHAP_MD5::putAuthAttributes()
Put CHAP-MD5 specific attributes

Class: Auth_RADIUS_PAP

Auth_RADIUS_PAP::__construct()
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::__construct()
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::loadExtension()
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 783]
class Auth_RADIUS_MSCHAPv2

Class for authenticating using MS-CHAPv2 see RFC2759



[ Top ]


Class Variables

$challenge =  null

[line 789]

16 Bytes binary challenge

Type:   string
Overrides:   Array


[ Top ]

$peerChallenge =  null

[line 795]

16 Bytes binary Peer Challenge

Type:   string


[ Top ]



Method Detail

close   [line 835]

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

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

putAuthAttributes   [line 812]

void putAuthAttributes( )

Put MS-CHAPv2 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_mschapv2value { u_char ident; u_char flags; u_char pchallenge[16]; u_char reserved[8]; u_char response[24]; }; where pchallenge is the peer challenge. Like for MS-CHAPv1 we set the flags field to 1.


Overrides Auth_RADIUS_MSCHAPv1::putAuthAttributes() (Put MS-CHAPv1 specific attributes)
[ Top ]


Documentation generated on Mon, 11 Mar 2019 16:01:19 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.