| Home | Trees | Index | Help |
|---|
| Package pyrad :: Module packet :: Class AuthPacket |
|
UserDict--+ |Packet--+ | AuthPacket
| Method Summary | |
|---|---|
Constructor | |
CreateReply(self,
**attributes)
| |
| string |
Obfuscate password |
| string |
Unobfuscate a RADIUS password |
| string |
Create a ready-to-transmit authentication request packet |
| Inherited from Packet | |
| |
| |
Add an attribute to the packet. | |
| string |
Create a packet autenticator. |
| integer |
Create a packet ID |
Initialize the object from raw packet data. | |
| |
| |
| string |
Create a ready-to-transmit authentication reply packet |
| |
| Inherited from UserDict | |
| |
| |
| |
| |
| |
| |
| |
(Class method) | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| Instance Method Details |
|---|
__init__(self,
code=1,
id=None,
secret='',
authenticator=None,
**attributes)
Constructor
|
PwCrypt(self, password)Obfuscate password RADIUS hides passwords in packets by using an algorithm based on the MD5 hash of the pacaket authenticator and RADIUS secret. If no authenticator has been set before calling PwCrypt one is created automatically. Changing the authenticator after setting a password that has been encrypted using this function will not work.
|
PwDecrypt(self, password)Unobfuscate a RADIUS password RADIUS hides passwords in packets by using an algorithm based on the MD5 hash of the pacaket authenticator and RADIUS secret. This function reverses the obfuscation process.
|
RequestPacket(self)Create a ready-to-transmit authentication request packet Return a RADIUS packet which can be directly transmitted to a RADIUS server.
|
| Home | Trees | Index | Help |
|---|
| Generated by Epydoc 2.1 on Wed Jun 2 14:19:55 2004 | http://epydoc.sf.net |