Skip to main content

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="", 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])


pyrad requires Python 2.0 or later.

Installing is simple; pyrad uses the standard distutils system for installing Python modules:

python install

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyrad-1.0alpha1.tar.gz (19.1 kB view hashes)

Uploaded source

Built Distribution

pyrad-1.0alpha1-py2.4.egg (35.7 kB view hashes)

Uploaded 2 4

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page