<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
Hi Arran,<br><br>Thank you for the response.<br><br>I add perl in the sites-available/default file as follow:<br><br>authorize {<br>        #<br>        #  The preprocess module takes care of sanitizing some bizarre<br>        #  attributes in the request, and turning them into attributes<br>        #  which are more standard.<br>        #<br>        #  It takes care of processing the 'raddb/hints' and the<br>        #  'raddb/huntgroups' files.<br>        preprocess<br>       ....<br>       ldap<br>       perl<br>      .....<br>}<br><br><br>And added the following into raddb/modules/perl file<br><br>perl {<br>    module = <path>/example.pl<br>}  <br><br><br>And added the following in src/modules/rlm_perl/example.pl<br><br>sub authorize {<br>        print "This is a TEST\n";<br>.....<br>}<br><br><br>However, When I send a simple test request I don't see my debug line. I also don't see the message "perl loaded" when start Freeradius in debug mode (radiusd -X).<br><br>Am I missing anything?<br><br>I appreciate it.<br>ASM<br><br><div><hr id="stopSpelling">From: a.cudbardb@freeradius.org<br>Subject: Re: rlm_perl<br>Date: Thu, 29 Sep 2011 19:39:55 +0200<br>To: freeradius-users@lists.freeradius.org<br><br>
<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML"><br><div><div>On 29 Sep 2011, at 19:25, Alex rsm wrote:</div><br class="ecxApple-interchange-newline"><blockquote><span class="ecxApple-style-span" style="border-collapse:separate;font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;orphans:2;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;font-size:medium"><div class="ecxhmmessage" style="font-size:10pt;font-family:Tahoma"><div dir="ltr">Hi,<br><br>How can I configure Freeradius to call example.pl perl script in the rlm_perl module? i.e., I want the perl script to be called when Freeradius receives a request.<br><br></div></div></span></blockquote><div><br></div></div><div>read/modify raddb/modules/perl and list perl in sites-available/default authorize {}</div><div><br></div><br><div>
<span class="ecxApple-style-span" style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;orphans:2;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;font-size:medium"><span class="ecxApple-style-span" style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;orphans:2;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;font-size:medium"><div style="word-wrap:break-word"><span class="ecxApple-style-span" style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;orphans:2;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;font-size:medium"><div style="word-wrap:break-word">Arran Cudbard-Bell<br><a href="mailto:a.cudbardb@freeradius.org">a.cudbardb@freeradius.org</a><br><br>Betelwiki, Betelwiki, Betelwiki....<span class="ecxApple-converted-space"> </span>http://wiki.freeradius.org/ !</div></span></div></span></span>
</div>

<br><br>-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html</div>                                        </div></body>
</html>