<div dir="ltr">Hello i am trying to setup a basic authentication for users against the php script<div>with the config bellow(removed functional things and showed reply only as example)</div><div><br></div><div>i am getting the error</div>
<div><br></div><div><div>Exec-Program output: user_name     Cleartext-Password := "pass"</div><div>Exec-Program-Wait: plaintext: user_name     Cleartext-Password := "pass"</div><div>Exec-Program: returned: 0</div>
<div>++[php_check] returns ok</div><div>[pap] WARNING! No "known good" password found for the user.  Authentication may fail because of this.</div><div>++[pap] returns noop</div><div>ERROR: No authenticate method (Auth-Type) found for the request: Rejecting the user</div>
<div>Failed to authenticate the user.</div><div>Using Post-Auth-Type Reject</div><div><div><br></div><div><br></div><div>PLEASE SUGGEST ME THE CHANGES NEEDED</div><div><br></div><div>the module php looks like this</div><div>
<div>exec php_check{</div><div>        wait = yes</div><div>        program = "/usr/bin/php -f /var/rad_check.php  %{Called-Station-Id} %{User-Name} %{User-Password}"</div><div>        input_pairs = request</div>
<div>        output_pairs = config</div><div>        shell_escape = yes</div><div>}</div></div><div><br></div><div>php script is like this</div><div><?php</div><div><span class="" style="white-space:pre">     </span>echo 'user_name     Cleartext-Password := "pass"';<br>
</div><div>?></div><div><br></div><div>radiusd.conf is like this<br>
<div><div>authorize {</div><div>php_check</div></div><div>}</div><div><div>authenticate {</div><div><span class="" style="white-space:pre">   </span> Auth-Type PAP {</div><div><span class="" style="white-space:pre">           </span>pap</div>
<div><span class="" style="white-space:pre">    </span> }</div><div>}</div></div></div></div></div></div>