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
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
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
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
Gents,
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 experimental modules enabled?)
then
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
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
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
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
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
Is there a function available to report the number of packets the RADIUS
Server handles at a given time?
Like counting Access Requests over a period of some seconds, dropping a line
into a file, rest the number and count again?
Currently we are doing snoop -o /dev/null udp port 1812 to get an
11 matches
Mail list logo