Custom php module error in v3
Javed Akhtar
javed at gowifi.in
Mon Feb 5 15:27:17 CET 2018
tried both echo 0 and echo 1
its not working same error
On Mon, Feb 5, 2018 at 7:00 PM, Krauss International <
sanman.krauss at gmail.com> wrote:
> 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
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/
> list/users.html
--
Md Javed Akhtar
Managing Director
Go WiFi Networking Solutions Pvt. Ltd.
217, Purusottampur
Jajpur Town-755001, Odisha
0091-9437545260
More information about the Freeradius-Users
mailing list