Custom php module error in v3

Javed Akhtar javed at gowifi.in
Mon Feb 5 14:08:27 CET 2018


this is what i am getting in radius debug
(0) Received Access-Request Id 14 from xxx.xxx.xxx.xxx:62252 to
yyy.yyy.yyy.yyy:1815 length 50
(0)   User-Name = "93381062"
(0)   User-Password = "12345"
(0) # Executing section authorize from file /etc/freeradius/3.0/sites-enab
led/default
(0)   authorize {
(0)     update control {
(0)       Executing: /usr/bin/php -f /var/lib/radius/rad_check.php
'%{Called-Station-Id}' '%{User-Name}' '%{User-Password}'
'%{Calling-Station-Id}':
(0)       EXPAND %{Called-Station-Id}
(0)          -->
(0)       EXPAND %{User-Name}
(0)          --> 93381062
(0)       EXPAND %{User-Password}
(0)          --> 12345
(0)       EXPAND %{Calling-Station-Id}
(0)          -->
(0)       Program returned code (0) and output 'Accept'
(0)     } # update control = invalid
(0)   } # authorize = invalid
(0) Using Post-Auth-Type Reject
(0) Post-Auth-Type sub-section not found.  Ignoring.

this is what i have in default sites

authorize {
#php_check
    update control {
        Auth-Type := `/usr/bin/php -f /var/lib/radius/rad_check.php
'%{Called-Station-Id}' '%{User-Name}' '%{User-Password}'
'%{Calling-Station-Id}'`
        }
}

and this is the php script
<?php
echo "Accept";
exit;
?>


why its rejecting the user i am trying to upgrade form v2 to v3 of
freeradius and lots of problem i got


More information about the Freeradius-Users mailing list