<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Dear All,<BR> <BR>I am new at freeradius (2.1.4) <BR>I am using sql authentication with mysql successfuly and <BR>I want to add second authentication via bash. (if sql authentication fail then check bash authentication)<BR> <BR>I added file (bashauth) to module directory <BR> <BR>exec bashauth {<br> wait = yes<br> program = "/usr/local/bin/bash /bin/radcheck %{User-Name} %{User-Password}"<br> input_pairs = request<br> output_pairs = reply<br> shell_escape = yes<BR>}<BR> <BR>then I modified sites-enabled/default<BR> <BR>authorize {<BR>...<BR>bashouth<BR>pap<BR>}<BR>authenticate {<BR> Auth-Type BASHAUTH {<br> bashauth<br> }<br>...<BR>}<BR> <BR>but I cant authenticate user via bash script <BR> <BR>radiusd -X output is below.<BR> <BR>[bashauth] expand: %{User-Name} -> a<br>[bashauth] expand: %{User-Password} -> a<br>Exec-Program output:<br>Exec-Program: returned: 0<br>++[bashauth] returns ok<br>[pap] WARNING! No "known good" password found for the user. Authentication may fail because of this.<br>++[pap] returns noop<br>No authenticate method (Auth-Type) configuration found for the request: Rejecting the user<br>Failed to authenticate the user.<br><BR> <BR>What must I do for solving problem?<BR> <BR>Thanks for your help,<BR> <BR>Ahmet<BR> <BR> <BR> <BR> </div></body>
</html>