<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Hello, <br><br>I'm a newbie, with some delphi/pascal programming skills, but no knowledge of C.<br><br>I've been watching Freeradius developments for the last 4 years, and am very impressed by how much the community has grown and software has developed since then.  Henceforth, i am exploring into the possibility of using freeradius for my authentication project.<br><br>For the last few days, i've been experimenting with the cygwin version of Freeradius (Freeradius.net), and trying to figure out an easy way for me to add custom authentication procedure to Freeradius that works on both Windows/Linux platforms.<br><br>3 methods come into mind, rlm_perl, rlm_exec and custom module.  Custom module will be the last resort since it requires greater effort, and hence cost.<br><br>Firstly, I've got file and rlm_mysql working on freeradius.net.<br><br>Then comes rlm_perl, which was a problem as it wasn't available in the freeradius.net installation (not found inside lib fold!
 er), so i can't use it.<br><br>Next, i tried rlm_exec, and got a no such file error - i tried setting different paths in radiusd.conf, but to no avail.<br><br>Exec-Program output: Exec-Program: FAILED to execute c:/freeradius.net/bin/test.pl:<br> No such file or directory<br>Exec-Program-Wait: plaintext: Exec-Program: FAILED to execute c:/freeradius.net/<br>bin/test.pl: No such file or directory<br>Exec-Program: returned: 1<br>rlm_exec (exec): External script failed<br><br>For radiusd.conf, i tried "c:/freeradius.net/bin/test.pl", "c:\freeradius.net\bin\test.pl", "test.pl", "/freeradius.net/bin/test.pl", "\freeradius.net\bin/test.pl", and also tried placing test.pl on C drive root.<br><br>E.g.<br>        exec {<br>            program = "c:/freeradius.net/bin/test.pl"<br>                wait = yes<br> &!
 nbsp;          &nbsp
;   input_pairs = request<br>                output_pairs = reply<br>        }<br><br><br><br>Some questions which i hope someone here experienced can provide me with some insights.  :)<br><br><br>1). Is there a way to get the cygwin version of rlm_perl.<br><br>2). Why am i facing the path/file not found problem?  Does this mean the cygwin version of rlm_exec doesn't work?<br><br>3). Are there any other options for me besides rlm_exec and rlm_perl?<br><br>4). If i were to implement a custom module, must it be compiled into radiusd.exe?  I will want to avoid messing with the cygwin compiled radiusd.exe.  And if that is not the case, can i use a crossplatform programming language like freepascal to implement the module, instead of C?  <br><br><br>A little info on the custom authentication procedure:<br><br>1. I need to provide a doubl!
 e-factor authentication to my users.<br>2. The first level will be a simple challenge and password (i reckon that this can be done using File or MySQL).<br>3. Upon successful first authentication, the user is not given access-accept, instead, he needs to enter a second password (this is the OTP).  The OTP must be generated by the custom script/module by accessing some external database - this is done immediately after the first authentication has been successfully completed.<br><br><br>Thanks in advance.<br><br>Rgds,<br>Joshua<br><br /><hr />Enrich your blog with Windows Live Writer. <a href='http://get.live.com/writer/overview' target='_new'>Windows Live Writer</a></body>
</html>