Main Page | Class Hierarchy | Class List | File List | Class Members

tacpp::TacacsServerAuthorization Class Reference

use from AAA db_authorization More...

#include <Tacacs.h>

Inheritance diagram for tacpp::TacacsServerAuthorization:

tacpp::AAA List of all members.

Public Member Functions

bool get_request (unsigned char *, unsigned char *, int *, int *, int *, int *, char *, char *, char *, char **avpair)
bool send_response (const int, const char *, const char *, char **)
bool optional (char *)
bool mandatory (char *)
bool match_attr (char *, char *)
bool match_value (char *, char *)
char * get_value (char *)
 TacacsServerAuthorization (TacacsPacket *, bool)
 ~TacacsServerAuthorization ()

Public Attributes

int method
int priv_lvl
int authen_type
int authen_service
char user [USERNAME_LEN]
char port [PORT_LEN]
char rem_addr [REM_ADDR_LEN]
db_user dbd
char * curService
char * curProtocol
int added
int replaced
int start_av
char * avpair [MAX_AVP]
char * bavpair [MAX_AVP]
char * nas_avp
regex_t preg
size_t nmatch
regmatch_t pmatch [2]
bool flag1
bool flag2
bool flag3
bool flag4
int j
char * avps [MAX_AVP]
bool def_author
TacacsPackett

Detailed Description

use from AAA db_authorization

Author:
rv
Version:
1


Constructor & Destructor Documentation

TacacsServerAuthorization::TacacsServerAuthorization TacacsPacket ,
bool 
 

init

TacacsServerAuthorization::~TacacsServerAuthorization  ) 
 

free


Member Function Documentation

bool TacacsServerAuthorization::get_request unsigned char *  ,
unsigned char *  ,
int *  ,
int *  ,
int *  ,
int *  ,
char *  ,
char *  ,
char *  ,
char **  avpair
 

get authorization request

char * TacacsServerAuthorization::get_value char *   ) 
 

get value from avp

bool TacacsServerAuthorization::mandatory char *   ) 
 

is this value mandatory?

bool TacacsServerAuthorization::match_attr char *  ,
char * 
 

is attrs match?

bool TacacsServerAuthorization::match_value char *  ,
char * 
 

is values match?

bool TacacsServerAuthorization::optional char *   ) 
 

is this value optional?

bool TacacsServerAuthorization::send_response const  int,
const char *  ,
const char *  ,
char ** 
 

send res


Member Data Documentation

int tacpp::TacacsServerAuthorization::added
 

added flag

int tacpp::TacacsServerAuthorization::authen_service
 

authen service

int tacpp::TacacsServerAuthorization::authen_type
 

authen type

char* tacpp::TacacsServerAuthorization::avpair[MAX_AVP]
 

for av, which we are receive from cisco

char* tacpp::TacacsServerAuthorization::avps[MAX_AVP]
 

avps

char* tacpp::TacacsServerAuthorization::bavpair[MAX_AVP]
 

for av, which we are send to cisco

char* tacpp::TacacsServerAuthorization::curProtocol
 

store protocol=

char* tacpp::TacacsServerAuthorization::curService
 

store service=

db_user tacpp::TacacsServerAuthorization::dbd
 

for user information storage

bool tacpp::TacacsServerAuthorization::def_author
 

default authorization flag

bool tacpp::TacacsServerAuthorization::flag1
 

flag1

bool tacpp::TacacsServerAuthorization::flag2
 

flag2

bool tacpp::TacacsServerAuthorization::flag3
 

flag3

bool tacpp::TacacsServerAuthorization::flag4
 

flag4

int tacpp::TacacsServerAuthorization::j
 

j

int tacpp::TacacsServerAuthorization::method
 

method

char* tacpp::TacacsServerAuthorization::nas_avp
 

keep current avpair

size_t tacpp::TacacsServerAuthorization::nmatch
 

nmatch

regmatch_t tacpp::TacacsServerAuthorization::pmatch[2]
 

pmatch

char tacpp::TacacsServerAuthorization::port[PORT_LEN]
 

port

regex_t tacpp::TacacsServerAuthorization::preg
 

preg

int tacpp::TacacsServerAuthorization::priv_lvl
 

priv level

char tacpp::TacacsServerAuthorization::rem_addr[REM_ADDR_LEN]
 

rem addr

int tacpp::TacacsServerAuthorization::replaced
 

replaced flag

int tacpp::TacacsServerAuthorization::start_av
 

start av

TacacsPacket* tacpp::TacacsServerAuthorization::t
 

packet processor ptr

char tacpp::TacacsServerAuthorization::user[USERNAME_LEN]
 

user


The documentation for this class was generated from the following files:
Generated on Thu Jul 21 23:09:49 2005 for tacppd.kdevelop by doxygen 1.3.5