Re: rlm_python

2013-08-21 Thread Phil Mayers
On 08/20/2013 02:27 PM, stefan.pae...@diamond.ac.uk wrote: Hello all, I'm currently attempting to use rlm_python to query LDAP (with python-ldap) and then return an XML string in a VSA (SAML-AAA-Assertion). However, when I try to load it, I get the dreaded undefined symbol: PyExc_SystemError

RE: rlm_python

2013-08-21 Thread stefan.paetow
12 with, I know, I know, FreeRADIUS 2.1.10. Python-LDAP was Well... as Alan says, upgrade. Particularly if you know. There is no 'out of the box' version for upgrade on Ubuntu 12 at this point short of having to compile it ourselves, that is (situation is similar to CentOS 6 where the last

Re: rlm_python

2013-08-21 Thread Matthew Newton
On Wed, Aug 21, 2013 at 09:19:35AM +, stefan.pae...@diamond.ac.uk wrote: Well... as Alan says, upgrade. Particularly if you know. There is no 'out of the box' version for upgrade on Ubuntu 12 at this point short of having to compile it ourselves, that is Building your own packages on

RE: rlm_python

2013-08-21 Thread stefan.paetow
Building your own packages on Debian/Ubuntu is trivial. There's really no excuse not to run the latest code. Matthew, I agree with you, but not when the policy is to only use what is published on vendor (i.e. Ubuntu) repositories. But, like I say, that's not a discussion appropriate for the

rlm_python

2013-08-20 Thread stefan.paetow
Hello all, I'm currently attempting to use rlm_python to query LDAP (with python-ldap) and then return an XML string in a VSA (SAML-AAA-Assertion). However, when I try to load it, I get the dreaded undefined symbol: PyExc_SystemError error. This is on Ubuntu 12 with, I know, I know, FreeRADIUS

Re: rlm_python

2013-08-20 Thread Alan DeKok
stefan.pae...@diamond.ac.uk wrote: Hello all, I'm currently attempting to use rlm_python to query LDAP (with python-ldap) and then return an XML string in a VSA (SAML-AAA-Assertion). However, when I try to load it, I get the dreaded undefined symbol: PyExc_SystemError error

Re: share information between authorize and authenticate sections (rlm_perl rlm_python)

2012-12-13 Thread Alan Buxey
Hi, in perl, i could write some new attributes in RAD_CHECK ??, then authenticate() will access them. in python, attributes are read only, so i cannot use them to pass information to authenticate(). A simple database, like redis, could be a solution by adding info with the id of the

Re: share information between authorize and authenticate sections (rlm_perl rlm_python)

2012-12-13 Thread Phil Mayers
On 12/12/12 22:04, laurent.fe...@free.fr wrote: Hello, If someone can advise me... How to share information between the authorize() function and the authenticate() function within a perl or python script ? Just set an attribute: authorize { update request { Tmp-String-0 :=

Re: share information between authorize and authenticate sections (rlm_perl rlm_python)

2012-12-13 Thread laurent . feron
and authenticate sections (rlm_perl rlm_python) On 12/12/12 22:04, laurent.fe...@free.fr wrote: Hello, If someone can advise me... How to share information between the authorize() function and the authenticate() function within a perl or python script ? Just set an attribute: authorize

share information between authorize and authenticate sections (rlm_perl rlm_python)

2012-12-12 Thread laurent . feron
Hello, If someone can advise me... How to share information between the authorize() function and the authenticate() function within a perl or python script ? For example, i get some information from a database in authorize() that will reuse it in authenticate()? I could resubmit the sql request

Re: rlm_python: no %RAD_REQUEST equivalent

2012-09-27 Thread laurent . feron
Yes i confirm you cannot change the request's attributes with rlm_python. With rlm_perl you can (by using the environment variable RAD_REQUEST). I wanted to modify the username. So the only solution would be to modify and update the rlm_python code source. But it is too hard for me... regards

Re: rlm_python: no %RAD_REQUEST equivalent

2012-09-25 Thread laurent . feron
Hi, Thanks for your reply. The tuple is a read only object. So, i cannot modify the request attributes with rlm_python. Unfortunately, this module is more limited than the perl one. i have to continue with this one... Regards, Laurent - Mail original - De: Alan DeKok al

Re: rlm_python: no %RAD_REQUEST equivalent

2012-09-25 Thread Alan DeKok
laurent.fe...@free.fr wrote: The tuple is a read only object. So, i cannot modify the request attributes with rlm_python. You already said that. I gave you a solution: fix the code. Alan Dekok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

rlm_python: no %RAD_REQUEST equivalent

2012-09-24 Thread laurent . feron
Hello, I have a perl module that changes the username during the authorization phase (retrieve from a oracle database) by modifying the user-name attribute in the RAD_REQUEST dictionary. This update is global and can be used by the authentication phase (still handled by the perl script). I

Re: rlm_python: no %RAD_REQUEST equivalent

2012-09-24 Thread Alan DeKok
laurent.fe...@free.fr wrote: in the 'authorize(p)' function, p is the read only tuple of the request. I cannot update the request here. Hmm... you should be able to update it. If you can't, the code should be changed. Moreover, if i change the tuple config in the authorize function , how

Accessing nas ip with rlm_python and rlm_perl

2012-07-25 Thread Carl Pierre
Hello: Is it at all possible to access this information within these modules? I am trying to code different behavior in my code based on IP. Regards, - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: Accessing nas ip with rlm_python and rlm_perl

2012-07-25 Thread Arran Cudbard-Bell
On 25 Jul 2012, at 14:57, Carl Pierre wrote: Hello: Is it at all possible to access this information within these modules? I am trying to code different behavior in my code based on IP. NAS-IP-Address yes, Client-IP-Address maybe not, i'd have to check the code… Are you definitely trying

Re: rlm_python configTuple question

2012-05-30 Thread Phil Mayers
On 05/30/2012 06:43 AM, PENZ Robert wrote: replyTuble are the attributes which are send to the requesting NAS, but I couldn't find out what configTuple is exactly. I currently only pass an () and it works. Is it the same as update control and setting variables in the normal config files? Yes

rlm_python configTuple question

2012-05-29 Thread PENZ Robert
Hi! The python functions should return (return, replyTuple, configTuple). return is one of the following constants #RLM_MODULE_REJECT = 0 # /* immediately reject the request */ #RLM_MODULE_FAIL = 1 # /* module failed, don't reply */ #RLM_MODULE_OK = 2 # /* the module is OK,

Re: How to specify python modules used by rlm_python?

2011-10-04 Thread Alan Buxey
Hi, I'm trying to use rlm_python to intergrate with my own authentication backend, but there's so little document about rlm_python. I even cannot find how to specify the path to the python module. radiusd.py living in PYTHONPATH - EXPORT PYTHONPATH=$location alan - List info

How to specify python modules used by rlm_python?

2011-10-03 Thread yegle
Hi everyone, I'm trying to use rlm_python to intergrate with my own authentication backend, but there's so little document about rlm_python. I even cannot find how to specify the path to the python module. Can anybody give me a hint? Module: Instantiating module python from file /etc/freeradius

Re: rlm_python and the Tunnel-Private-Group-Id attribute

2011-02-11 Thread Bob Brandt
Just to close out this thread with a solution... Turns out that neither rlm_python nor freeradius were the problem. They are working perfectly. The problem was my idiot wireless administrator! Once I beat the password out of him and properly configured the wireless switch, everything started

rlm_python and the Tunnel-Private-Group-Id attribute

2011-02-10 Thread Bob Brandt
Not sure if there isn't another forum or mailing list for rlm_python specifically, but... I have been using freeradius for a while now with great results, thanks! We are using a very simple configuration to authenticate users against LDAP (eDirectory) and that part works great! I am trying

Re: rlm_python and the Tunnel-Private-Group-Id attribute

2011-02-10 Thread Alan DeKok
Bob Brandt wrote: All my testing seems to indicate it should work, but it is not. I believe the problem is in how rlm_python returns the Tunnel-Private-Group-Id attribute. As a string. The server core parses it into whatever is necessary. Date, IP address, etc. Below are the two snipets

Re: rlm_python and the Tunnel-Private-Group-Id attribute

2011-02-10 Thread Bob Brandt
which uses the users file and the second is from the new system using the rlm_python module: ...         Tunnel-Private-Group-Id:0 := 150 ...         Tunnel-Private-Group-Id:0 = 150 ... The debug output looks for the most part identical!  Yup. - List info/subscribe/unsubscribe? See http

Re: rlm_python and the Tunnel-Private-Group-Id attribute

2011-02-10 Thread Brett Littrell
CISSP, CCSP, CCVP, MCNE On Thursday, February 10, 2011 at 1:24 AM, in message AANLkTi=wzuimz+65y3-qzvzdpcvdwp8f4fhht-b+-...@mail.gmail.com, Bob Brandt b...@brandt.ie wrote: Not sure if there isn't another forum or mailing list for rlm_python specifically, but... I have been using freeradius

Re: rlm_python and the Tunnel-Private-Group-Id attribute

2011-02-10 Thread Brett Littrell
. Brett Littrell Network Manager MUSD CISSP, CCSP, CCVP, MCNE On Thursday, February 10, 2011 at 1:24 AM, in message AANLkTi=wzuimz+65y3-qzvzdpcvdwp8f4fhht-b+-...@mail.gmail.com, Bob Brandt b...@brandt.ie wrote: Not sure if there isn't another forum or mailing list for rlm_python specifically

Re: rlm_python and dynload problem

2011-01-07 Thread Alan DeKok
Josip Rodin wrote: I had just written the clean rebuild instructions here, but then I realized what might be wrong - configure.in says: AC_CHECK_FUNC(lt_dladvise_init, AC_DEFINE(HAVE_HAVE_LT_DLADVISE_INIT, [], [Do we have the lt_dladvise_init function]))

rlm_python and dynload problem

2011-01-06 Thread Aurélien Geron
Changelog: Update configure script for rlm_python to avoid dynamic linking problems on some platforms. I did not have time to test this ever since, but I just did, and unfortunately, I still have the same problem on Debian Lenny, using the latest FreeRADIUS backport for Lenny (it is based

Re: rlm_python and dynload problem

2011-01-06 Thread Josip Rodin
On Thu, Jan 06, 2011 at 11:26:44AM +0100, Aurélien Geron wrote: Hi and happy new year to everyone, In april I wrote the message below about python modules not being able to load dynamic libraries on Debian Lenny. I did not have time to test this ever since, but I just did, and

Re: rlm_python and dynload problem

2011-01-06 Thread Aurélien Geron
Hi Josip, Here are a few commands that I just launched on my server: #uname -a Linux maggie 2.6.26-2-amd64 #1 SMP Thu Nov 25 04:30:55 UTC 2010 x86_64 GNU/Linux #dpkg -l | grep libltdl ii libltdl31.5.26-4+lenny1A system independent dlopen wrapper for GNU

Re: rlm_python and dynload problem

2011-01-06 Thread Aurélien Geron
Hi, The workaround described in http://bugs.debian.org/416266 for perl works for python too, I just tried it: LD_PRELOAD=/usr/lib/libpython2.5.so.1 freeradius -X = works fine Thanks a lot, Aurélien Geron Le 6 janv. 2011 à 14:44, Josip Rodin a écrit : On Thu, Jan 06, 2011 at 11:26:44AM

Re: rlm_python and dynload problem

2011-01-06 Thread Josip Rodin
On Thu, Jan 06, 2011 at 03:46:07PM +0100, Aurélien Geron wrote: libltdl.so.7 = /usr/lib/libltdl.so.7 (0x7f1018258000) = FreeRADIUS seems to rely on libltdl.so.7, as expected. #grep -i advise freeradius.ltrace = [no output] Apparently, the string advise is nowhere in ltrace's

Re: rlm_python and dynload problem

2010-04-28 Thread Alan DeKok
Aurélien Geron wrote: Basically, if I understand correctly, his idea is to have the python fellows declare the proper dependencies in every *.so file, so that the libpython2.5.so.1 file gets loaded automatically when the math module (or any other dynamic module) gets loaded. Maybe that's

Re: rlm_python and dynload problem

2010-04-28 Thread Aurélien Geron
Alan DeKok wrote: Aurélien Geron wrote: Basically, if I understand correctly, his idea is to have the python fellows declare the proper dependencies in every *.so file, so that the libpython2.5.so.1 file gets loaded automatically when the math module (or any other dynamic module) gets

rlm_python and dynload problem

2010-04-26 Thread Aurélien Geron
Hi, I came across a bug when rlm_python executes python code that tries to load a dynamic (shared) module. This bug seems to have been discussed 2 or 3 times on this list, but no really satisfying solution appears to have been found so far (as far as I know), so I thought I might raise

rlm_python and post-auth manipulation.

2009-10-21 Thread phil lemelin
Good day Freeradius users, I am trying to use the rlm_python module to do additional actions after an user has been authenticated. To learn, I'm using the radiusd_test.py which is in the python path. I haven't found an indication that says it is impossible to do, correct me if I'm wrong off

Re: rlm_python and post-auth manipulation.

2009-10-21 Thread Alan DeKok
phil lemelin wrote: /usr/local/etc/raddb/sites-enabled/default[422]: python modules aren't allowed in 'post-auth' sections -- they have no such method. /usr/local/etc/raddb/sites-enabled/default[380]: Errors parsing post-auth section. Is this caused because I can't use

Re: rlm_python and post-auth manipulation.

2009-10-21 Thread Alan Buxey
Hi, It's because you're using an old version of the server. i.e. 1.x, not 2.x. sites-enabled/default etc in 1.1.x? I cant recall seeing that config :-) alan - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: rlm_python and post-auth manipulation.

2009-10-21 Thread Alan Buxey
Hi, Created a python module under modules : so long as you are using FR 2.1.x then you shouldnt need to do that - just simply edit experimental.conf to make sure the python stuff is active and then edit radiusd.conf to make sure that experimental.conf is included (you did compile FR with

Re: rlm_python and post-auth manipulation.

2009-10-21 Thread phil lemelin
the : rlm_example* files rlm_python* files Seeing that echo_NAS_Info loads, i suspect there is something else that has to be done in order to activate de experimental modules/config. When you say, simply edit experimental.conf, should I change something in it, or by default it should be ok

Re: rlm_python and post-auth manipulation.

2009-10-21 Thread Alan DeKok
Alan Buxey wrote: Hi, It's because you're using an old version of the server. i.e. 1.x, not 2.x. sites-enabled/default etc in 1.1.x? I cant recall seeing that config :-) The post-auth section has been in rlm_python for a long time. Whether it's 1.x, or 2.0.x, or a 8 month-old

Re: rlm_python and post-auth manipulation.

2009-10-21 Thread Alan Buxey
Hi, I'm running FR 2.1.4. hmm, i've had a quick skim through the code and it looks like pre 2.1.7 didnt have some of the hooks etc needed to be run in that section - why play with older version - give 2.1.7 a go...if you're compiling from source you may as well run the latest /best version

Re: rlm_python and post-auth manipulation.

2009-10-21 Thread phil lemelin
Alan, Thank you for you time. I downloaded, compiled and installed the 2.1.7 version. I replaced my /usr/local/raddb folder by the 2.1.7 raddb folder and used that to make sure my config didnt conflict. I only modified radiusd.conf to add experimental.conf and added python in the post-auth

Re: rlm_python and post-auth manipulation.

2009-10-21 Thread phil lemelin
I went back to creating a python module in the modules folder and the post-auth is now working. There is something missing in the experimental.conf to have it work with that method. I prefer creating a python module anyway. Looks like there is a bug in 2.1.4 and rlm_python where the post-auth

Re: rlm_python and post-auth manipulation.

2009-10-21 Thread Alan Buxey
Hi, The key for me here was to update to 2.1.7 2.1.7 and to call the python in the modules/* section alan - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

ubuntu / debian rlm_python issues using mysqldb module

2009-07-08 Thread Michael da Silva Pereira
2009 : Debug: modules { Wed Jul 8 12:10:51 2009 : Debug: Module: Checking authenticate {...} for more modules to load Wed Jul 8 12:10:51 2009 : Debug: (Loaded rlm_python, checking if it's valid) Wed Jul 8 12:10:51 2009 : Debug: Module: Linked to module rlm_python Wed Jul 8 12:10:51

Re: ubuntu / debian rlm_python issues using mysqldb module

2009-07-08 Thread Ivan Kalik
I am sure i'm not the only person experiencing this problem. It seems when using the python module to handle auth/acct. If you include the MySQLdb module in the python script freeradius then dies and is unable to load the pythong module. I am using the latest stable freeradius version 2.1.6,

Re: ubuntu / debian rlm_python issues using mysqldb module

2009-07-08 Thread Michael da Silva Pereira
Yeah sure does, If I remove the line import MySQLdb it works fine. It seems to definanetly have a issue with this module. I've also tried sqlobject as a module and I get the same problem. Thanks, Mike Ivan Kalik wrote: I am sure i'm not the only person experiencing this problem. It seems

Re: ubuntu / debian rlm_python issues using mysqldb module

2009-07-08 Thread John Dennis
On 07/08/2009 04:16 AM, Michael da Silva Pereira wrote: Hi All, I am sure i'm not the only person experiencing this problem. It seems when using the python module to handle auth/acct. If you include the MySQLdb module in the python script freeradius then dies and is unable to load the pythong

rlm_python - Unresponsive child

2009-06-22 Thread Mike Tkachuk
Hello Freeradius-users, I'm trying to use Freeradius 2.1.6 release with rlm_python (python 2.6.2) on FreeBSD. I use default radiusd_test.py bundled with rlm_python. All is fine when I start radius in debug mode with -X, however in normal forked mode next error appear: Error: WARNING

Re: rlm_python - Unresponsive child

2009-06-22 Thread Ivan Kalik
I'm trying to use Freeradius 2.1.6 release with rlm_python (python 2.6.2) on FreeBSD. I use default radiusd_test.py bundled with rlm_python. All is fine when I start radius in debug mode with -X, however in normal forked mode next error appear: Error: WARNING: Unresponsive child

Re[2]: rlm_python - Unresponsive child

2009-06-22 Thread Mike Tkachuk
Hello Ivan, Monday, June 22, 2009 12:20:38 PM, you wrote: IK Permissions. Check if freeradius user has permissions to execute the IK script. I assume that you have checked that script actually works. Thanks for the answer. I was testing under root user, so the permissions should not be a

Re: Re[2]: rlm_python - Unresponsive child

2009-06-22 Thread Ivan Kalik
IK Permissions. Check if freeradius user has permissions to execute the IK script. I assume that you have checked that script actually works. Thanks for the answer. I was testing under root user, so the permissions should not be a problem, but I checked that also - added user = root

Re[4]: rlm_python - Unresponsive child

2009-06-22 Thread Mike Tkachuk
Hello Ivan, As I told - all working file in freeradius debug mode (with -X), I have problems with productional threads pool mode. Sure there is no 'authenticate' function but 'authorize', that function called while authentificate block executed: python { mod_instantiate =

Re: Re[4]: rlm_python - Unresponsive child

2009-06-22 Thread Ivan Kalik
As I told - all working file in freeradius debug mode (with -X), I have problems with productional threads pool mode. When things work with radiusd -X and don't under radius user problems are permissions, SE Linux or stuff like that. Ivan Kalik Kalik Informatika ISP - List

RE: Re[4]: rlm_python - Unresponsive child

2009-06-22 Thread Meyers, Dan
As I told - all working file in freeradius debug mode (with -X), I have problems with productional threads pool mode. I see the same issue with rlm_perl and my perl code. Works fine in radiusd -X, or if perl is compiled to not use threads, but as soon as I compile perl for threading and start

Re: rlm_python example?

2009-04-01 Thread Mike O'Connor
Hi Hristo Could you supply a quick example ? Its always good to get working example after a problem is resolved (even if the person is resolved by the questioner) Mike Hristo Trendev wrote: The examples in src/modules/rlm_python gave me some hints and I figured it out. Thanks anyway

rlm_python example?

2009-03-31 Thread Hristo Trendev
I am trying to figure out how to properly setup freeradius with rlm_python. The module loads and scripts execute, but I seem to miss something when I try to return value pairs to be used in the reply packet (Access-Accept). I have tried with the following script: def authorize (params

Re: rlm_python example?

2009-03-31 Thread Hristo Trendev
The examples in src/modules/rlm_python gave me some hints and I figured it out. Thanks anyway. On Tue, Mar 31, 2009 at 3:43 PM, Hristo Trendev dist.li...@gmail.com wrote: I am trying to figure out how to properly setup freeradius with rlm_python. The module loads and scripts execute, but I seem

Re: rlm_python import error undefinde symbol

2009-03-01 Thread Alexander Yu. Solodukhin
Alexander Yu. Solodukhin a...@softwarium.net писал(а) в своём письме Sat, 28 Feb 2009 22:40:35 +0200: Hi all. I try to use rlm_python and got import error on importing any module that relevant on shared object. Here an rlm_python configuration: ## cut python { mod_instantiate

rlm_python import error undefinde symbol

2009-02-28 Thread Alexander Yu. Solodukhin
Hi all. I try to use rlm_python and got import error on importing any module that relevant on shared object. Here an rlm_python configuration: ## cut python { mod_instantiate = account func_instantiate = instantiate mod_authorize = account func_authorize

Re: rlm_python freeradiusd 2.0.2

2008-02-17 Thread Alexander Demidoff
: --with-experimental-modules \ --with-rlm_python created config files and my pythom module radiusd_isp, put it python path freeradius -X out me: python { mod_instantiate = radiusd_isp func_instantiate = instantiate

rlm_python freeradiusd 2.0.2

2008-02-16 Thread Alexander Demidoff
Hello all! I want to use python possibilities to authorize users with freeradius. So, I compiled freeradius with options: --with-experimental-modules \ --with-rlm_python created config files and my pythom module radiusd_isp, put it python path freeradius -X out

Re: rlm_python freeradiusd 2.0.2

2008-02-16 Thread Mike O'Connor
/freeradius-python/ [EMAIL PROTECTED] site-packages]# Cheers Mike Alexander Demidoff wrote: Hello all! I want to use python possibilities to authorize users with freeradius. So, I compiled freeradius with options: --with-experimental-modules \ --with-rlm_python

Re: rlm_python freeradiusd 2.0.2

2008-02-16 Thread Alexander Demidoff
python possibilities to authorize users with freeradius. So, I compiled freeradius with options: --with-experimental-modules \ --with-rlm_python created config files and my pythom module radiusd_isp, put it python path freeradius -X out me

Re: rlm_python freeradiusd 2.0.2

2008-02-16 Thread Alexander Demidoff
At the end of my attempts to resolve the problem I've found out 1. Compiling options --with-experimental-modules \ --with-rlm_python \ --with-static-modules=python 2. Befor starting of freeradius I created radiusd_isp.pyc file in the interactive

Re: RLM_python patch to enable postproxy - Not work need a little help

2007-11-13 Thread Mike O'Connor
Alan DeKok wrote: Mike O'Connor wrote: I wrote the attached patch for Freeradius 1.1.7 to enabled calling python in the post-proxy, it compiles but will not run when the hook is listed in post-proxy because Freeradius complains that there is no support for post-proxy in rlm_python

Re: RLM_python patch to enable postproxy - Not work need a little help

2007-11-13 Thread Alan DeKok
Mike O'Connor wrote: Maybe I'm not getting your but even the lastest cvs does not have any post-proxy or post-auth support. That's not what I meant. My code added the post-proxy but when I tried to use it freeradius would complain that rlm_python did not support being called from the post

Re: RLM_python patch to enable postproxy - Not work need a little help

2007-11-13 Thread Mike O'Connor
Hi Alan I think I have worked it out, some how I got my self confused during my testing. The model was there but I think each time I did not have everything configured. Thanks as always for your time Mike - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

RLM_python patch to enable postproxy - Not work need a little help

2007-11-12 Thread Mike O'Connor
Hi Guys I wrote the attached patch for Freeradius 1.1.7 to enabled calling python in the post-proxy, it compiles but will not run when the hook is listed in post-proxy because Freeradius complains that there is no support for post-proxy in rlm_python. My question is where in the source

Re: RLM_python patch to enable postproxy - Not work need a little help

2007-11-12 Thread Alan DeKok
Mike O'Connor wrote: I wrote the attached patch for Freeradius 1.1.7 to enabled calling python in the post-proxy, it compiles but will not run when the hook is listed in post-proxy because Freeradius complains that there is no support for post-proxy in rlm_python. You didn't install the new

Re: rlm_Python - PyExc_IOError

2007-10-03 Thread Alan DeKok
Mike O'Connor wrote: I decided to try freeradius-2.0.0-pre2 and its give a much clear idea of the problem. The issue seems to be that the rlm_python module is having trouble loading dynamic code. I suspect it's a shared library problem. The time.so library depends on another one

Re: rlm_Python - PyExc_IOError

2007-10-03 Thread Mike O'Connor
to be that the rlm_python module is having trouble loading dynamic code. I suspect it's a shared library problem. The time.so library depends on another one that contains PyExc_IOError. However, that dependency is NOT recorded in time.so. That dependency is also NOT built

Re: rlm_Python - PyExc_IOError

2007-10-03 Thread Mike O'Connor
idea of the problem. The issue seems to be that the rlm_python module is having trouble loading dynamic code. I suspect it's a shared library problem. The time.so library depends on another one that contains PyExc_IOError. However, that dependency is NOT recorded in time.so

Re: rlm_Python - PyExc_IOError

2007-10-03 Thread Mike O'Connor
to be that the rlm_python module is having trouble loading dynamic code. I suspect it's a shared library problem. The time.so library depends on another one that contains PyExc_IOError. However, that dependency is NOT recorded in time.so. That dependency is also NOT built into FreeRADIUS

Re: rlm_Python - PyExc_IOError

2007-10-03 Thread freeradius
Hi All Again I have not fixed it, with all the playing around with FreeRadius versions I had not got rlm_python loading when I believed I had fixed it. Mike :( Mike O'Connor wrote: Hi All I'm happy to say I have fixed this issue. I'm not totally happy with the way I did it because it would

rlm_Python - PyExc_IOError

2007-10-02 Thread Mike O'Connor
Hi Guys Got a problem with rlm_python using 1.1.7 on Debian etch with no changes to source other than to move rlm_python in to the stable modules file. The module is in the path and an strace shows the file being found. rlm_python:python_load_function: module 'radiusd_test' is not found

Re: rlm_Python - PyExc_IOError

2007-10-02 Thread Alan DeKok
Mike O'Connor wrote: Got a problem with rlm_python using 1.1.7 on Debian etch with no changes to source other than to move rlm_python in to the stable modules file. The module is in the path and an strace shows the file being found. Is radiusd.py in the path? Alan DeKok. - List info

Re: rlm_Python - PyExc_IOError

2007-10-02 Thread Mike O'Connor
Hi Alan Is radiusd.py in the path? Yep in the same place as my own code /usr/lib/python2.4/site-packages/ Strace never shows that file being requested for loading. Mike - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: rlm_Python - PyExc_IOError

2007-10-02 Thread Mike O'Connor
Hi Guys I decided to try freeradius-2.0.0-pre2 and its give a much clear idea of the problem. The issue seems to be that the rlm_python module is having trouble loading dynamic code. Mike write(1, exceptions.ImportError: /usr/lib..., 97exceptions.ImportError: /usr/lib/python2.4/lib-dynload

Re: Rlm_python - need documentation

2007-05-29 Thread UriCALL Support
All, I am in need of developing my own application using rlm_python. Can anybody inform me about some documentation available? From what I have found on Internet it looks like an isolate project with lack of users ... Anybody able to share the experience with me? Is it stable for production

Rlm_python - need documentation

2007-05-28 Thread UriCALL Support
Hi All, I am in need of developing my own application using rlm_python. Can anybody inform me about some documentation available? From what I have found on Internet it looks like an isolate project with lack of users ... Anybody able to share the experience with me? Is it stable for production

Re: Rlm_python - need documentation

2007-05-28 Thread Peter Nixon
On Mon 28 May 2007, UriCALL Support wrote: Hi All, I am in need of developing my own application using rlm_python. Can anybody inform me about some documentation available? From what I have found on Internet it looks like an isolate project with lack of users ... Anybody able to share

Re: rlm_perl/rlm_python adding extra value pairs

2007-03-12 Thread Alan DeKok
Mike O'Connor wrote: I wish to add some extra valid pairs to accounting packets which are being proxied to other radius servers. If in the 'preacct' or the 'accounting' stage I was to add using rlm_python or rlm_perl value pairs would they be sent thought to the other radius servers

rlm_perl/rlm_python adding extra value pairs

2007-03-10 Thread Mike O'Connor
Hi All I wish to add some extra valid pairs to accounting packets which are being proxied to other radius servers. If in the 'preacct' or the 'accounting' stage I was to add using rlm_python or rlm_perl value pairs would they be sent thought to the other radius servers ? Thanks Mike - List

RE : rlm_python

2007-01-29 Thread Geoffroy Arnoud
Hi Guys Is anyone actually using rlm_python in production? We do. But with a home-made module, based on corrected module stored in bugzilla. We made adjustments in it to meet our customer needs, and it is therefore not reusable. Nevertheless, we did correct memory leaks, threading issues

Re: rlm_python

2007-01-27 Thread Alan DeKok
Peter Nixon wrote: Hi Guys Is anyone actually using rlm_python in production? Unlike rlm_perl we don't seem to have any example code or any decent documentation. I am looking at using it myself and just looking for some feedback.. Apply the patches from bugs.freeradius.org. They've

Re: rlm_python

2007-01-27 Thread Peter Nixon
On Sat 27 Jan 2007 09:38, Alan DeKok wrote: Peter Nixon wrote: Hi Guys Is anyone actually using rlm_python in production? Unlike rlm_perl we don't seem to have any example code or any decent documentation. I am looking at using it myself and just looking for some feedback.. Apply

Re: rlm_python

2007-01-27 Thread Alan DeKok
Peter Nixon wrote: Hmm.. the only open bug I see against rlm_python is: http://bugs.freeradius.org/show_bug.cgi?id=182 Are there some others that I didn't manage to find? I recall someone re-writing much of the module to make it work. But I didn't have time to look over the patches

rlm_python

2007-01-26 Thread Peter Nixon
Hi Guys Is anyone actually using rlm_python in production? Unlike rlm_perl we don't seem to have any example code or any decent documentation. I am looking at using it myself and just looking for some feedback.. Cheers -- Peter Nixon http://www.peternixon.net/ PGP Key: http

Simultaneous-Use implementation in rlm_python

2006-08-31 Thread Flamur Rogova
Hi, I have noticed that more recent rlm_python versions have function bindings for implementing Simultaneous-Use checking in python module. Something like this ... python_init done Module: Loaded python python: mod_instantiate = pppoe python: func_instantiate = instantiate python

rlm_python question...

2006-04-15 Thread i_amok i_amok
why radius say : authorize: function call failedexceptions.TypeError: unsubscriptable object belowis a modify radius_test.py = # Miguel A.L. Paraz [EMAIL PROTECTED] import radiusdimport MySQLdb def instantiate(p): print *** instantiate *** print p def

Re: status of rlm_python in 1.1.0 release

2005-09-14 Thread Ilia Chipitsine
Ilia Chipitsine wrote: When that module will become non-experimental ? It has not been changing for years, maybe it can become regular module in 1.1.0 ? The module rlm_python is still experimental. There are known issues with this module. http://bugs.freeradius.org/show_bug.cgi?id=227

Re: status of rlm_python in 1.1.0 release

2005-09-14 Thread Alan DeKok
Ilia Chipitsine [EMAIL PROTECTED] wrote: if existing rlm_python is buggy why not to use better version ? Because the primary FreeRADIUS developers don't use python. Please use the updated module yourself, and if it works for you, email the list and say so. If no one says that the new

status of rlm_python in 1.1.0 release

2005-09-11 Thread Ilia Chipitsine
Dear Sirs, I just made diff between 1.0.4 and 1.1.0 rlm_python sources and they appear to be the same. When that module will become non-experimental ? It has not been changing for years, maybe it can become regular module in 1.1.0 ? We develop an application that uses rlm_python and we

Re: status of rlm_python in 1.1.0 release

2005-09-11 Thread Nicolas Baradakis
Ilia Chipitsine wrote: When that module will become non-experimental ? It has not been changing for years, maybe it can become regular module in 1.1.0 ? The module rlm_python is still experimental. There are known issues with this module. http://bugs.freeradius.org/show_bug.cgi?id=227

rlm_perl / rlm_python

2005-09-09 Thread ricklim
... what is better to use rlm_perl or rlm_python? I would have to learn python, but if the general concensus is to go with python I'll do it. TIA - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: rlm_perl / rlm_python

2005-09-09 Thread Thor Spruyt
? No, but latest version is best :) A very subjective question here... what is better to use rlm_perl or rlm_python? I think that rlm_perl is likely to be supported better than rlm_python. I would have to learn python, but if the general concensus is to go with python I'll do it. Go for rlm_perl

RE: rlm_perl / rlm_python

2005-09-09 Thread Jonathan De Graeve
:19 Aan: FreeRadius users mailing list Onderwerp: Re: rlm_perl / rlm_python [EMAIL PROTECTED] wrote: Hi there, Could someone tell me what versions of freeradius have rlm_perl? All latest version have it. But it's unstable and therefore you have to compile from source using --with-experimental

  1   2   >