| Home | Trees | Index | Help |
|---|
| Package pyrad :: Module client :: Class Client |
|
Host --+
|
Client
Basic RADIUS client.
This class implements a basic RADIUS client. It can send requests to a RADIUS server, taking care of timeouts and retries, and validate its replies.| Method Summary | |
|---|---|
Constructor. | |
Bind socket to an address. | |
| pyrad.packet.Packet |
Create a new RADIUS packet. |
| pyrad.packet.Packet |
Create a new RADIUS packet. |
| pyrad.packet.Packet |
Send a packet to a RADIUS server. |
| Instance Variable Summary | |
|---|---|
| integer | retries: number of times to retry sending a RADIUS request |
| integer | timeout: number of seconds to wait for an answer |
| Method Details |
|---|
__init__(self,
server,
authport=1812,
acctport=1813,
secret='',
dict=None)
Constructor.
|
bind(self, addr)Bind socket to an address. Binding the socket used for communicating to an address can be usefull when working on a machine with multiple addresses.
|
CreateAcctPacket(self, **args)Create a new RADIUS packet. This utility function creates a new RADIUS packet which can be used to communicate with the RADIUS server this client talks to. This is initializing the new packet with the dictionary and secret used for the client.
|
CreateAuthPacket(self, **args)Create a new RADIUS packet. This utility function creates a new RADIUS packet which can be used to communicate with the RADIUS server this client talks to. This is initializing the new packet with the dictionary and secret used for the client.
|
SendPacket(self, pkt)Send a packet to a RADIUS server.
|
| Instance Variable Details |
|---|
retriesnumber of times to retry sending a RADIUS request
|
timeoutnumber of seconds to wait for an answer
|
| Home | Trees | Index | Help |
|---|
| Generated by Epydoc 2.1 on Wed Jun 2 14:19:55 2004 | http://epydoc.sf.net |