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