Basic RADIUS server. This class implements the basics of a RADIUS server. It takes care of the details of receiving and decoding requests; processing of the requests should be done by overloading the appropriate methods in derived classes.
| Variable hosts: | hosts who are allowed to talk to us |
|---|---|
| Variable _poll: | poll object for network sockets |
| Variable _fdmap: | |
| map of filedescriptors to network sockets | |
| Variable MaxPacketSize: | |
| maximum size of a RADIUS packet | |
Add an address to listen to. An empty string indicated you want to listen on all addresses.
| Parameter: | addr (string) – IP address to listen on |
|---|
Create a reply packet. Create a new packet which can be returned as a reply to a received packet.
| Parameter: | pkt (Packet instance) – original packet |
|---|
Accounting packet handler. This is an empty function that is called when a valid accounting packet has been received. It can be overriden in derived classes to add custom behaviour.
| Parameter: | pkt (Packet class instance) – packet to process |
|---|
Authentication packet handler. This is an empty function that is called when a valid authentication packet has been received. It can be overriden in derived classes to add custom behaviour.
| Parameter: | pkt (Packet class instance) – packet to process |
|---|