pyrad 2.0
RADIUS tools
Introduction
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.6 or later, or Python 3.2 or later
Installing is simple; pyrad uses the standard distutils system for installing Python modules:
python setup.py install
Author, copyright, availability
pyrad was written by Wichert Akkerman <wichert@wiggy.net> and is licensed under a BSD license.
Copyright and license information can be found in the LICENSE.txt file.
The current version and documentation can be found on pypi: http://pypi.python.org/pypi/pyrad
Bugs and wishes can be submitted in the pyrad issue tracker on github: https://github.com/wichert/pyrad/issues
| File | Type | Py Version | Uploaded on | Size | # downloads |
|---|---|---|---|---|---|
| pyrad-2.0.tar.gz (md5) | Source | 2011-05-15 | 37KB | 840 | |
- Author: Wichert Akkerman
- Home Page: https://github.com/wichert/pyrad
- Keywords: radius,authentication
- License: BSD
-
Categories
- Development Status :: 6 - Mature
- Intended Audience :: Developers
- License :: OSI Approved :: BSD License
- Programming Language :: Python :: 2.6
- Programming Language :: Python :: 2.7
- Programming Language :: Python :: 3.2
- Topic :: Software Development :: Libraries :: Python Modules
- Topic :: System :: Systems Administration :: Authentication/Directory
- Package Index Owner: wichert
- DOAP record: pyrad-2.0.xml
