Re: Python access to attribute lists

2013-02-01 Thread Duarte Fonseca
Hi, I've modified rlm_python.c to get access to the remaining attribute lists if anyone is interested in the patch you can get it at https://dl.dropbox.com/u/797051/freeradius-python.patch The patch was done against version 2.1.12 shipped from CentOS. Any feedback would be greatly appreciated

Python access to attribute lists

2012-12-05 Thread Duarte Fonseca
Hi, Just wondering if someone can confirm something for me. The python module only passes the the request attribute list (not the reply, proxy-reply, control lists) to the python script, is that correct? Would it be possible to modify the module to pass the remaining lists to the python code?

Re: Python access to attribute lists

2012-12-05 Thread laurent . feron
Décembre 2012 17:41:19 Objet: Python access to attribute lists Hi, Just wondering if someone can confirm something for me. The python module only passes the the request attribute list (not the reply, proxy-reply, control lists) to the python script, is that correct? Would it be possible

Re: Python access to attribute lists

2012-12-05 Thread Phil Mayers
On 12/05/2012 05:59 PM, laurent.fe...@free.fr wrote: Moreover, the request list is a read only list. I wanted to modify the user-name in the authorization function in python, but you cannot, only rlm_perl is able to do that. Yes, if someone could enhance the rlm_python it will be great. I looked

Re: Python access to attribute lists

2012-12-05 Thread Alan Buxey
Hi, I wonder if a better option wouldn't be something like rlm_unixsocket which passes the request down a unix socket in a standard format, and takes the reply in the same way. Then the various interpreters could run out-of-process. I was thinking about the same thing the other day after the