pyrad is a Python RADIUS client.. #RADIUS client #RADIUS dictionary #RADIUS server #Pyrad #Python #RADIUS
pyrad is a Python RADIUS client.
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
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.
pyrad 2.0
add to watchlist add to download basket send us an update REPORT- runs on:
- Linux
- filename:
- pyrad-2.0.tar.gz
- main category:
- System
- developer:
- visit homepage
4k Video Downloader 1.5.3.0080 Plus / 4.30.0.5655
calibre 7.9.0
Microsoft Teams 24060.3102.2733.5911 Home / 1.7.00.7956 Work
paint.net 5.0.13 (5.13.8830.42291)
7-Zip 23.01 / 24.04 Beta
IrfanView 4.67
ShareX 16.0.1
Windows Sandbox Launcher 1.0.0
Zoom Client 6.0.0.37205
Bitdefender Antivirus Free 27.0.35.146
- Windows Sandbox Launcher
- Zoom Client
- Bitdefender Antivirus Free
- 4k Video Downloader
- calibre
- Microsoft Teams
- paint.net
- 7-Zip
- IrfanView
- ShareX