Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

pyrad 0.2 - RADIUS client

3 views
Skip to first unread message

Wichert Akkerman

unread,
Oct 7, 2002, 11:13:17 AM10/7/02
to
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. (RADIUS is a common protocol used for
authentication, authorisation and accounting for remote access (and
similar) services).


Changes since previous release
------------------------------
* Use proper exceptions
* Encode and decode vendor attributes
* Dictionary can parse vendor dictionaries
* Dictionary can handle attribute values
* Enhance most constructors; they now take extra optional parameters with
initialisation info.
* No longer use obsolete python interfaces like whrandom
* Use correct homepage address in announcement and readme (doh)


Example
-------
Here is an example of doing a authentication request:

from pyrad.client import Client
from pyrad.dictionary import Dictionary

srv=Client(server="radius.my.domain", secret="s3cr3t",
dict=dictionary.Dictionary("dicts/dictionary", "dicts/dictionary.acc"))

req=srv.CreatePacket(code=pyrad.client.AccessRequest,
User_Name="wichert", NAS_Identifier="localhost")
req["User-Password"]=req.PwCrypt("password")

reply=srv.SendPacket(req)
if reply.code==pyrad.client.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
------------

pyrad requires Python 2.0 or later.


Author, copyright, availability
-------------------------------

pyrad was written by Wichert Akkerman <wic...@deephackmode.org>

The current version and documentation can be found at its homepage:

http://www.wiggy.net/code/pyrad.xhtml

Copyright 2002 Wichert Akkerman. All rights reserved.
pyrad is distributed under the BSD license. Please see the source
archive for the full license text.


--
_________________________________________________________________
/wic...@wiggy.net This space intentionally left occupied \
| wic...@deephackmode.org http://www.wiggy.net/ |
| 1024D/2FA3BC2D 576E 100B 518D 2F16 36B0 2805 3CB8 9250 2FA3 BC2D |

0 new messages