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

Class: Auth_RADIUS_Acct

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

Class Overview

Auth_RADIUS
   |
   --Auth_RADIUS_Acct

class Auth_RADIUS_Acct


Variables

Methods


Child classes:

Auth_RADIUS_Acct_Start
class Auth_RADIUS_Acct_Start
Auth_RADIUS_Acct_Stop
class Auth_RADIUS_Acct_Start
Auth_RADIUS_Acct_Update
class Auth_RADIUS_Acct_Update

Inherited Variables

Inherited Methods

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 849]
class Auth_RADIUS_Acct

Class for RADIUS accounting



[ Top ]


Class Variables

$authentic =  null

[line 856]

Defines where the Authentication was made, possible values are:

RADIUS_AUTH_RADIUS, RADIUS_AUTH_LOCAL, RADIUS_AUTH_REMOTE


Type:   integer


[ Top ]

$session_id =  null

[line 875]

A uniq identifier for the session of the user, maybe the PHP-Session-Id

Type:   string


[ Top ]

$session_time =  null

[line 869]

The time the user was logged in in seconds

Type:   integer


[ Top ]

$status_type =  null

[line 863]

Defines the type of the accounting request, on of:

RADIUS_START, RADIUS_STOP, RADIUS_ACCOUNTING_ON, RADIUS_ACCOUNTING_OFF


Type:   integer


[ Top ]



Method Detail

__construct (Constructor)   [line 883]

void __construct( )

Constructor

Generates a predefined session_id. We use the Remote-Address, the PID, and the Current user.


Overrides Auth_RADIUS::__construct() (Constructor)
[ Top ]

createRequest   [line 921]

bool createRequest( )

Creates an accounting request

Creates an accounting request. You MUST call this method before you can put any attribute.

  • Return: true on success, false on error

Overrides Auth_RADIUS::createRequest() (Overwrite this.)
[ Top ]

open   [line 904]

bool open( )

Creates a RADIUS resource

Creates a RADIUS resource for accounting. This should be the first call before you make any other things with the library.

  • Return: true on success, false on error

Overrides Auth_RADIUS::open() (Overwrite this.)
[ Top ]

putAuthAttributes   [line 936]

void putAuthAttributes( )

Put attributes for accounting.

Here we put some accounting values. There many more attributes for accounting, but for web-applications only certain attributes make sense.


Overrides Auth_RADIUS::putAuthAttributes() (Puts custom attributes.)
[ Top ]


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