Hello all I was using just exit(0); in php script for successful auth Its working fine in freeradius2 but in freeradius3 its giving error "invalid attribute" module exited with code 0 and output "" Whats the solution??
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-enabled/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
works here (this is with 3.0.16) config has: update control { Auth-Type := `/bin/php -f /usr/local/etc/raddb/rad_check.php` } script is: <?php echo "Accept"; exit; ?> and output is: (0) # Executing section authorize from file /usr/local/etc/raddb/sites-enabled/default (0) authorize { (0) update control { (0) Executing: /bin/php -f /usr/local/etc/raddb/rad_check.php: (0) Program returned code (0) and output 'Accept' (0) Auth-Type := Accept (0) } # update control = noop NB this comes back as noop - as expected - and not invalid as you got. alan
participants (3)
-
Alan Buxey -
Alan DeKok -
Javed Akhtar