Pre-release
This release is a pre-release and may not be stable for production use.
pyrad 0.9
pyrad is an implementation of a RADIUS client as described in RFC2865. It takes care of all the details like building RADIUS packets, sending them and decoding responses.
Here is an example of doing a authentication request:
import pyrad.packet
from pyrad.client import Client
from pyrad.dictionary import Dictionary
srv=Client(server="radius.my.domain", secret="s3cr3t",
dict=Dictionary("dicts/dictionary", "dictionary.acc"))
req=srv.CreateAuthPacket(code=pyrad.packet.AccessRequest,
User_Name="wichert", NAS_Identifier="localhost")
req["User-Password"]=req.PwCrypt("password")
reply=srv.SendPacket(req)
if reply.code==pyrad.packet.AccessAccept:
print "access accepted"
else:
print "access denied"
print "Attributes returned by server:"
for i in reply.keys():
print "%s: %s" % (i, reply[i])
REQUIREMENTS & INSTALLATION
pyrad requires Python 2.0 or later.
Installing is simple; pyrad uses the standard distutils system for installing Python modules:
python setup.py install
Release files for pyrad 1.0alpha1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyrad-1.0alpha1.tar.gz | 19.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyrad-1.0alpha1-py2.4.egg | Legacy Egg format | - | - | Details |
Total release size: 54.8 kB
Release files / pyrad-1.0alpha1.tar.gz
| Download URL | pyrad-1.0alpha1.tar.gz |
|---|---|
| Size | 19.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d3a251896e0b08b7f7de6169d5dbebd55ba27b1e1e5d119bdf12b6dc96611629
|
|
BLAKE2b-256 checksum How to use checksums |
90ff3e3f27649837f5472cf26833de6ea0dbdbecd21a2fae9065b295e47e8a74
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pyrad-1.0alpha1-py2.4.egg
| Download URL | pyrad-1.0alpha1-py2.4.egg |
|---|---|
| Size | 35.7 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
3c685dc8d68e96736be117f38e00fef1002c1f51346254d19dbb72ea8e0d9190
|
|
BLAKE2b-256 checksum How to use checksums |
337259405586f93878b08dc56dc467900c40193ac47e8bee0b997604e0364c50
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |