RADIUS client tools
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyrad-1.0alpha1.tar.gz.
File metadata
- Download URL: pyrad-1.0alpha1.tar.gz
- Upload date:
- Size: 19.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d3a251896e0b08b7f7de6169d5dbebd55ba27b1e1e5d119bdf12b6dc96611629
|
|
| MD5 |
b8ba0c35e1bc0a528cebe01dc4b1869a
|
|
| BLAKE2b-256 |
90ff3e3f27649837f5472cf26833de6ea0dbdbecd21a2fae9065b295e47e8a74
|
File details
Details for the file pyrad-1.0alpha1-py2.4.egg.
File metadata
- Download URL: pyrad-1.0alpha1-py2.4.egg
- Upload date:
- Size: 35.7 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c685dc8d68e96736be117f38e00fef1002c1f51346254d19dbb72ea8e0d9190
|
|
| MD5 |
b0850242473b2a7c79e15b16b084f495
|
|
| BLAKE2b-256 |
337259405586f93878b08dc56dc467900c40193ac47e8bee0b997604e0364c50
|