Custom php module error in v3
Alan DeKok
aland at deployingradius.com
Mon Feb 5 15:31:03 CET 2018
On Feb 5, 2018, at 8:08 AM, 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'
That should work.
> 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}'`
> }
> }
That looks fine.
> and this is the php script
> <?php
> echo "Accept";
> exit;
> ?>
That's fine.
> why its rejecting the user i am trying to upgrade form v2 to v3 of
> freeradius and lots of problem i got
This may be a bug, but I haven't seen it before.
If you're upgrading, read raddb/README.rst in the v3 distribution. It gives long details instructions for upgrading from v2 to v3.
Alan DeKok.
More information about the Freeradius-Users
mailing list