Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > System > Networking

    pyrad 2.0

    Download button

    No screenshots available
    Downloads: 965  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Good (3.4/5)
    17 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Wichert Akkerman | More programs
    BSD License / FREE
    May 16th, 2011, 22:52 GMT
    ROOT / System / Networking

     Read user reviews (0)  Refer to a friend  Subscribe

    pyrad description

    pyrad is a Python RADIUS client.

    pyrad is a Python RADIUS client.

    pyrad contains several modules:

    pyrad.client
    RADIUS client class.
    pyrad.dictionary
    RADIUS dictionary support. Supports standard radiusd dictionaries and has preliminary support for the freeradius octets and abinary extensions.
    pyrad.packet
    A packet with a RADIUS request or reply. A packet object takes care of all the necessary data conversion allowing the programmer to only use standard python data types and RADIUS attribute names.
    pyrad.server
    Basic RADIUS server and proxy classes.
    pyrad.tools
    Utility functions, mostly used internally for data conversion

    Simple example

    Below is a simple example of how to use pyrad; it shows how to do an 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:

    · Python

    What's New in This Release:

    · The Packet class has been improved to behave fully like a standard Python dictionary.
    · This release no longer assumes that unknown attribute types do not need any decoding or encoding, which could cause invalid packets to be generated.
    · Support has been added for the 'octets' data type as used by FreeRADIUS.



    Product's homepage

      


    TAGS:

    RADIUS client | RADIUS dictionary | RADIUS server | pyrad | Python | RADIUS

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM