Custom php module error in v3

Krauss International sanman.krauss at gmail.com
Mon Feb 5 14:30:00 CET 2018


Instead of echo accept use echo 1 and check the results

On Mon, 5 Feb 2018 at 18:38, Javed Akhtar <javed at gowifi.in> wrote:

> 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
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html

-- 
Thanks & regards
Mankomal Singh
Krauss International
P: +91-9910416231
E: ms at kc-india.com
PS: Send all bulk emails to sanman.krauss at gmail.com ONLY


More information about the Freeradius-Users mailing list