Gents,<br><br><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote"><div style="text-align: left;">so long as you are using FR 2.1.x then you shouldnt<br>

need to do that - just simply edit experimental.conf<br>
to make sure the python stuff is active and then edit<br>
radiusd.conf to make sure that experimental.conf is included<br>
(you did compile FR with experimental modules enabled?)<br>
<br>
then you should be able to call python in the postauth section<br></div></blockquote>
<br><br>I'm running FR 2.1.4.<br>My configure was :<br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">./configure --with-experimental-modules<br>
</blockquote><div> </div>I deleted my python under modules.<br>I did, in the radiusd.conf file :<br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">
$INCLUDE experimental.conf<br></blockquote><div> </div><div>I can see the following line in the log :<br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">
including configuration file /usr/local/etc/raddb/experimental.conf<br></blockquote><div><br>And I left it has it was, so in it, I have :<br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">
         python {<br>                mod_instantiate = radiusd_test<br>                func_instantiate = instantiate<br><br>                mod_authorize = radiusd_test<br>                func_authorize = authorize<br><br>
                mod_accounting = radiusd_test<br>                func_accounting = accounting<br><br>                mod_preproxy = radiusd_test<br>                func_preproxy = preproxy<br><br>                mod_postproxy = radiusd_test<br>
                func_postproxy = postproxy<br><br>                mod_postauth = radiusd_test<br>                func_postauth = postauth<br><br>                mod_detach = radiusd_test<br>                func_detach = detach<br>
        }<br><br></blockquote></div> <br>Now, I restarted the server and I have the following. Note that to make sure I was in the right section, I added the following lines in the "post-auth" section of the "site-enabled/default" file :<br>
The echo_NAS_Info is a test I made copying the echo module under the "modules" folder <br> <br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">
        echo_NAS_Info<br>        python<br><br></blockquote><br>The result :<br><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote"> 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>/usr/local/etc/raddb/sites-enabled/default[422]: Failed to find module "python".<br>/usr/local/etc/raddb/sites-enabled/default[380]: Errors parsing post-auth section. <br> }<br></blockquote>
<br>Now it looks like I have a configuration error and not a python module error. Do I have to add more than <br>I replaced python with example in the default file and I have the same result for "example"<br>I verified my /usr/local/lib/ and I have the :<br>
<br>rlm_example* files<br>rlm_python* files<br><br>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.<br>When you say, simply edit experimental.conf, should I change something in it, or by default it should be ok ? The only thing I did is modifiy the radiusd.conf file to add the include line. The python section of the experimental.conf file is uncommented by default.<br>
</div><br>-- <br>Philippe-Alexandre Lemelin<br>