debian/0000755000000000000000000000000012107645130007165 5ustar debian/changelog0000644000000000000000000000552312107645005011045 0ustar pyrad (2.0-2) unstable; urgency=high * Use a better random number generator to prevent predictable password hashing and packet IDs (CVE-2013-0294, Closes: #700669). -- Jeremy Lainé Sat, 16 Feb 2013 09:52:59 +0100 pyrad (2.0-1) unstable; urgency=low * New upstream release. * Convert packaging to use debhelper 9 and dh_python2. * Remove Conflicts/Replaces on antique pyrad package. * Update Standards-Version to 3.9.3 (no changes). * Update Homepage to http://pypi.python.org/pypi/pyrad. -- Jeremy Lainé Fri, 07 Sep 2012 12:55:28 +0200 pyrad (1.2-1) unstable; urgency=low * New upstream release (Closes: #532843). * Change Build-Depends from python-all-dev to python. * Update Standards-Version to 3.8.4 (no changes). -- Jeremy Lainé Fri, 19 Mar 2010 07:50:23 +0100 pyrad (1.1-5) unstable; urgency=low * Update Standards-Version to 3.8.1 (no changes). * Add ${misc:Depends} to dependencies. -- Jeremy Lainé Sun, 03 May 2009 12:34:05 +0200 pyrad (1.1-4) unstable; urgency=low [ Jeremy Lainé ] * Fix lintian spelling warning (Python vs python). * Update Standards-Version to 3.8.0. [ Jan Dittberner ] * add debian/watch [ Sandro Tosi ] * debian/control - switch Vcs-Browser field to viewsvn -- Jeremy Lainé Thu, 20 Nov 2008 16:39:22 +0100 pyrad (1.1-3) unstable; urgency=low * Add Homepage, Vcs-Svn and Vcs-Browser fields to debian/control. * Add Debian Python Modules Team to Uploaders. * Update Standards-Version to 3.7.3. -- Jeremy Lainé Mon, 14 Jan 2008 11:02:31 +0100 pyrad (1.1-2) unstable; urgency=low * Add Build-Depends on python-setuptools (Closes: #453229). -- Jeremy Lainé Tue, 27 Nov 2007 23:22:30 +0100 pyrad (1.1-1) unstable; urgency=low * New upstream release (Closes: #448126). * Change maintainer to Jeremy Lainé. -- Jeremy Lainé Sun, 18 Nov 2007 11:41:37 +0100 pyrad (0.9-0.1) unstable; urgency=low * Non-maintainer upload. * New upstream release (Closes: #420765, #430681). -- Jeremy Lainé Sat, 30 Jun 2007 20:04:06 +0200 pyrad (0.8-1.1) unstable; urgency=low * Non-maintainer upload. [ Ana Beatriz Guerrero Lopez ] * Update package to the last python policy (Closes: #380915), this includes renaming from pyrad to python-pyrad. * Bumped compat to 5. * Bumped Standards-Version to 3.7.2, no changes required. [ Pierre Habouzit ] * Upload Ana's patch. -- Pierre Habouzit Mon, 4 Sep 2006 13:35:04 +0200 pyrad (0.8-1) unstable; urgency=low * Initial packaging * Closes: #204819: RFP: pyrad -- native python RADIUS implementation -- Bjorn Ove Grotan Wed, 16 Feb 2005 08:08:00 +0100 debian/patches/0000755000000000000000000000000012107645130010614 5ustar debian/patches/change_random_generator.patch0000644000000000000000000000171212107643550016475 0ustar diff --git a/pyrad/packet.py b/pyrad/packet.py index e3682b2..2366140 100644 --- a/pyrad/packet.py +++ b/pyrad/packet.py @@ -33,8 +33,11 @@ CoARequest = 43 CoAACK = 44 CoANAK = 45 +# Use cryptographic-safe random generator as provided by the OS. +random_generator = random.SystemRandom() + # Current ID -CurrentID = random.randrange(1, 255) +CurrentID = random_generator.randrange(1, 255) class PacketError(Exception): @@ -208,7 +211,7 @@ class Packet(dict): data = [] for i in range(16): - data.append(random.randrange(0, 256)) + data.append(random_generator.randrange(0, 256)) if six.PY3: return bytes(data) else: @@ -223,7 +226,7 @@ class Packet(dict): :rtype: integer """ - return random.randrange(0, 256) + return random_generator.randrange(0, 256) def ReplyPacket(self): """Create a ready-to-transmit authentication reply packet. debian/patches/series0000644000000000000000000000003612107644046012035 0ustar change_random_generator.patch debian/rules0000755000000000000000000000005512022347454010251 0ustar #!/usr/bin/make -f %: dh $@ --with python2 debian/compat0000644000000000000000000000000212022347107010362 0ustar 9 debian/watch0000644000000000000000000000011512022346661010216 0ustar version=3 http://pypi.python.org/packages/source/p/pyrad/pyrad-(.+)\.tar\.gz debian/copyright0000644000000000000000000000326212022346661011126 0ustar This package was debianized by Bjorn Ove Grotan on Mon, 27 Dec 2004 23:31:00 +0100. It was downloaded from http://www.wiggy.net/code/pyrad/ Upstream Author: Wichert Akkerman Copyright: Copyright 2002,2003,2004 Wichert Akkerman All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the University nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. debian/control0000644000000000000000000000202312022350074010561 0ustar Source: pyrad Section: python Priority: optional Maintainer: Jeremy Lainé Uploaders: Debian Python Modules Team , Bjorn Ove Grotan Build-Depends: debhelper (>= 9), python (>= 2.6.6-3~), python-setuptools Standards-Version: 3.9.3 Homepage: http://pypi.python.org/pypi/pyrad Vcs-Svn: svn://svn.debian.org/python-modules/packages/pyrad/trunk/ Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/pyrad/trunk/ Package: python-pyrad Architecture: all Depends: ${misc:Depends}, ${python:Depends} Provides: ${python:Provides} Description: Python module for creating and decoding RADIUS packets It takes care of all the details like building RADIUS packets, sending them and decoding responses. This package contains several modules: - client: RADIUS client code - dictionary: RADIUS attribute dictionary - server: Basic RADIUS server and proxy classes. - packet: a RADIUS packet as send to/from servers - tools: utility functions debian/source/0000755000000000000000000000000012107645130010465 5ustar debian/source/format0000644000000000000000000000001412107644256011703 0ustar 3.0 (quilt)