Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install pyrad

How to install pyrad

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install pyrad
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
2.0 Available View build log
1.2 Available View build log
2.0 Available View build log
Windows (64-bit)
2.0 Available View build log
1.2 Available View build log
2.0 Available View build log
Mac OS X (10.5+)
2.0 Available View build log
1.2 Available View build log
2.0 Available View build log
Linux (32-bit)
2.0 Available View build log
1.2 Available View build log
2.0 Available View build log
Linux (64-bit)
2.0 Available View build log
1.2 Available View build log
2.0 Available View build log
2.0 Available View build log
 
License
BSD
Dependencies
Imports
Lastest release
version 2.0 on May 16th, 2011

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

Subscribe to package updates

Last updated May 16th, 2011

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.