Remote RADIUS capable host we can talk to.
Exception class for bogus packets. ServerPacketError exceptions are only used inside the Server class to abort processing of a packet.
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.
Variables: |
|
---|
Add an address to listen to. An empty string indicated you want to listen on all addresses.
Parameters: | 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.
Parameters: | 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.
Parameters: | 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.
Parameters: | pkt (Packet class instance) – packet to process |
---|
Main loop. This method is the main loop for a RADIUS server. It waits for packets to arrive via the network and calls other methods to process them.