<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
> As you can see there is the message:<br>> "rlm_pap: WARNING! No "known good" password found for the user.  Authentication may fail because of this.<br>>   modcall[authorize]: module "pap" returns noop for request 9"<br>> So the php script for pap authorization is not even executed.<br>> Maybe there is something i missed in configuration?<br>> <br>> Thanx<br>> Maccari Dario<br><br>That's what I did to make it works<br><br>I added a new script for authorization which set the auth-type for final step and added that script in the authorize section<br><br><pre>********** radiusd.conf *************<br>modules {<br>        pap {<br>                auto_header = yes<br>        }<br>       exec test {<br>                wait = yes<br>                program = "/usr/local/bin/php -f /etc/raddb/radiusaccess.php"<br>                input_pairs = request<br>                output_pairs = reply<br>        }<br>        exec papauth {<br>                wait = yes<br>                program = "/usr/local/bin/php -n -f /etc/raddb/radiusauth.php"<br>                input_pairs = request<br>                output_pairs = config<br>        }<br><br>}<br> <br>authorize {<br>        preprocess<br>        suffix<br>        eap<br>        pap<br>        papauth<br>}<br> <br>authenticate {<br>        Auth-Type PAP {<br>                test<br>        }<br>        eap<br>}<br> <br>************* END radiusd.conf **********</pre>This is the relevant script part<br><br><pre>************* radiusauth.php **********</pre>
<?php<br>    $username = getenv("USER_NAME");<br>    $userpass = getenv ("USER_PASSWORD");<br>    if ($username!= "" && $userpass !="")<br>    {<br>        echo "Auth-Type = PAP\n";<br>    }<br> ?><br><pre>************* END radiusauth.php **********</pre>
<br>Does what i did have any sense?<br>Is it robust enough?<br><br>Bye and thanx <br><br>Dario Maccari<br><br><br /><hr />Get news, entertainment and everything you care about at Live.com. <a href='http://www.live.com/getstarted.aspx ' target='_new'>Check it out!</a></body>
</html>