I went back to creating a python module in the modules folder and the post-auth is now working.<br><br>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 cannot work.<br>
<br>The key for me here was to update to 2.1.7<br><br>Thank you.<br><br><div class="gmail_quote">On Wed, Oct 21, 2009 at 3:37 PM, phil lemelin <span dir="ltr"><<a href="mailto:phil.lemelin@gmail.com">phil.lemelin@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Alan, <br><br>Thank you for you time. <br>I downloaded, compiled and installed the 2.1.7 version.<br>
I replaced my /usr/local/raddb folder by the 2.1.7 raddb folder and used that to make sure my config didnt conflict.<br>
I only modified radiusd.conf to add experimental.conf and added "python" in the post-auth section of site-enabled/default<br><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">
[root@someserver freeradius-server-2.1.7]# /usr/local/sbin/radiusd -X<br>FreeRADIUS Version 2.1.7, for host x86_64-unknown-linux-gnu, built on Oct 21 2009 at 15:24:29 <br><br></blockquote><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">
--*snip*--<div class="im"><br><br>including configuration file /usr/local/etc/raddb/experimental.conf<br><br></div>--*snip*--<div class="im"><br><br> Module: Checking post-auth {...} for more modules to load<br> Module: Instantiating echo_NAS_Info<br>
exec echo_NAS_Info {<br>
wait = yes<br> program = "/bin/echo %{User-Name}, %{NAS-IP-Address}, %{NAS-Port} "<br> input_pairs = "request"<br> output_pairs = "reply"<br> shell_escape = yes<br> }<br></div>
/usr/local/etc/raddb/sites-enabled/default[423]: Failed to find module "python".<div class="im"><br>
/usr/local/etc/raddb/sites-enabled/default[380]: Errors parsing post-auth section. <br></div></blockquote><div> </div><div>Is there anything else I should do ?<br></div><font color="#888888"><br clear="all"><br>-- <br>Philippe-Alexandre Lemelin<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Philippe-Alexandre Lemelin<br>