#include <RadiusConfig.h>
Public Member Functions | |
RadiusConfig (void) | |
RadiusConfig (char *configfile) | |
~RadiusConfig () | |
int | parseConfigFile (const char *configfile) |
void | getValue (char *text, char *value) |
list< RadiusServer > * | getRadiusServer (void) |
void | setServiceType (char *) |
char * | getServiceType (void) |
void | setFramedProtocol (char *) |
char * | getFramedProtocol (void) |
void | setNASPortType (char *) |
char * | getNASPortType (void) |
void | setNASIdentifier (char *) |
char * | getNASIdentifier (void) |
char * | getNASIpAddress (void) |
void | setNASIpAddress (char *) |
Private Member Functions | |
void | deletechars (char *) |
Private Attributes | |
list< RadiusServer > | server |
char | serviceType [2] |
char | framedProtocol [2] |
char | nasPortType [2] |
char | nasIdentifier [128] |
char | nasIpAddress [16] |
Friends | |
ostream & | operator<< (ostream &os, RadiusConfig &config) |
|
The constructor The constructor initializes all char arrays with 0. |
|
The constructor initializes all char arrays with 0. After the initialization the configfile is parsed and the information which are found are copied to the attributes.
|
|
The destructur clears the serverlist. |
|
The method deletes chars from a string. This is used to delete tabs, spaces, # and '' from a string.
|
|
The getter method for the framed protocol
|
|
The getter method for the nas identifier.
|
|
The getter method for the nas ip address.
|
|
The getter method for the nas port type.
|
|
The getter method for the radius server list.
|
|
The getter method for the service type
|
|
The method finds the part of the string after the '=' and puts it in the value.
|
|
The method parse the configfile for attributes and radius server, the attributes are copied to the member variables.
|
|
The setter method for the framed protocol.
|
|
The setter method for the nas identifier.
|
|
The setter method for the nas ip address.
|
|
The setter method for the nas port type.
|
|
The setter method for the service type.
|
|
|
|
The framed protocol which is set in the radius packet as an attribute. |
|
The nas identifier which is set in the radius packet. |
|
The nas ipaddress which is set in the radius packet. |
|
The nas port type which is set in radius packet. |
|
An list with radius server, it is created dynamically by parsing the configuration file. |
|
The service type which is set in the radius packet. |