skip to navigation
skip to content

pyrad 2.0

RADIUS tools


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="", secret="s3cr3t",
      dict=Dictionary("dicts/dictionary", "dictionary.acc"))

              User_Name="wichert", NAS_Identifier="localhost")

if reply.code==pyrad.packet.AccessAccept:
    print "access accepted"
    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 install
File Type Py Version Uploaded on Size
pyrad-2.0.tar.gz (md5) Source 2011-05-15 37KB
  • Downloads (All Versions):
  • 39 downloads in the last day
  • 658 downloads in the last week
  • 2779 downloads in the last month