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
Instead of echo accept use echo 1 and check the results On Mon, 5 Feb 2018 at 18:38, Javed Akhtar <javed@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@kc-india.com PS: Send all bulk emails to sanman.krauss@gmail.com ONLY
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@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@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@kc-india.com PS: Send all bulk emails to sanman.krauss@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
On Feb 5, 2018, at 8:08 AM, Javed Akhtar <javed@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.
On Feb 5, 2018, at 8:08 AM, Javed Akhtar <javed@gowifi.in> wrote:
this is what i am getting in radius debug
I get this: (0) update control { (0) Executing: /bin/echo Accept: (0) Program returned code (0) and output 'Accept' (0) Auth-Type := Accept (0) } # update control = noop So it works for me. Please check that you're running 3.0.16, and not a version that's 3-4 years old. Alan DeKok.
root@selfcare:/etc/freeradius/3.0# freeradius -X FreeRADIUS Version 3.0.12 (0) authorize { (0) update control { (0) Executing: /usr/bin/php -f /var/www/rad_check.php': (0) Program returned code (0) and output 'Accept' (0) } # update control = invalid (0) } # authorize = invalid the version is 3.0.12 one difference i noticed here is your update control is noop and mine is Invalid can you tell what wrong am doing better can you send me your authorize section code for checking On Mon, Feb 5, 2018 at 9:01 PM, Alan DeKok <aland@deployingradius.com> wrote:
On Feb 5, 2018, at 8:08 AM, Javed Akhtar <javed@gowifi.in> wrote:
this is what i am getting in radius debug
I get this:
(0) update control { (0) Executing: /bin/echo Accept: (0) Program returned code (0) and output 'Accept' (0) Auth-Type := Accept (0) } # update control = noop
So it works for me. Please check that you're running 3.0.16, and not a version that's 3-4 years old.
Alan DeKok.
- 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
i just used this authorize { update control { Auth-Type := `/bin/echo Accept` } } and its working but form php echo its not On Mon, Feb 5, 2018 at 9:20 PM, Javed Akhtar <javed@gowifi.in> wrote:
root@selfcare:/etc/freeradius/3.0# freeradius -X FreeRADIUS Version 3.0.12
(0) authorize { (0) update control { (0) Executing: /usr/bin/php -f /var/www/rad_check.php': (0) Program returned code (0) and output 'Accept' (0) } # update control = invalid (0) } # authorize = invalid
the version is 3.0.12 one difference i noticed here is your update control is noop and mine is Invalid
can you tell what wrong am doing better can you send me your authorize section code for checking
On Mon, Feb 5, 2018 at 9:01 PM, Alan DeKok <aland@deployingradius.com> wrote:
On Feb 5, 2018, at 8:08 AM, Javed Akhtar <javed@gowifi.in> wrote:
this is what i am getting in radius debug
I get this:
(0) update control { (0) Executing: /bin/echo Accept: (0) Program returned code (0) and output 'Accept' (0) Auth-Type := Accept (0) } # update control = noop
So it works for me. Please check that you're running 3.0.16, and not a version that's 3-4 years old.
Alan DeKok.
- 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
-- Md Javed Akhtar Managing Director Go WiFi Networking Solutions Pvt. Ltd. 217, Purusottampur Jajpur Town-755001, Odisha 0091-9437545260
yes i have changed that and its including <?php echo "Accept\n"; exit; ?> On Mon, Feb 5, 2018 at 9:26 PM, Herwin Weststrate <herwin@quarantainenet.nl> wrote:
On 05-02-18 16:53, Javed Akhtar wrote:
i just used this authorize { update control { Auth-Type := `/bin/echo Accept` } }
and its working but form php echo its not
Does the php script include a newline in its output?
-- Herwin Weststrate - 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
so..what other modules have you disabled or edited, what is your exec module looking like etc? alan On 5 February 2018 at 15:58, Javed Akhtar <javed@gowifi.in> wrote:
yes i have changed that and its including <?php echo "Accept\n"; exit; ?>
On Mon, Feb 5, 2018 at 9:26 PM, Herwin Weststrate < herwin@quarantainenet.nl> wrote:
On 05-02-18 16:53, Javed Akhtar wrote:
i just used this authorize { update control { Auth-Type := `/bin/echo Accept` } }
and its working but form php echo its not
Does the php script include a newline in its output?
-- Herwin Weststrate - 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 - List info/subscribe/unsubscribe? See http://www.freeradius.org/ list/users.html
all other modules are disabled. On Tue, Feb 6, 2018 at 12:02 AM, Alan Buxey <alan.buxey@gmail.com> wrote:
so..what other modules have you disabled or edited, what is your exec module looking like etc?
alan
On 5 February 2018 at 15:58, Javed Akhtar <javed@gowifi.in> wrote:
yes i have changed that and its including <?php echo "Accept\n"; exit; ?>
On Mon, Feb 5, 2018 at 9:26 PM, Herwin Weststrate < herwin@quarantainenet.nl> wrote:
On 05-02-18 16:53, Javed Akhtar wrote:
i just used this authorize { update control { Auth-Type := `/bin/echo Accept` } }
and its working but form php echo its not
Does the php script include a newline in its output?
-- Herwin Weststrate - 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 - List info/subscribe/unsubscribe? See http://www.freeradius.org/ list/users.html
- 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
Ummmm. I would take a vanilla freeradius install and get your PHP working and then start to disable things. alan On 6 Feb 2018 10:19 am, "Javed Akhtar" <javed@gowifi.in> wrote:
all other modules are disabled.
On Tue, Feb 6, 2018 at 12:02 AM, Alan Buxey <alan.buxey@gmail.com> wrote:
so..what other modules have you disabled or edited, what is your exec module looking like etc?
alan
On 5 February 2018 at 15:58, Javed Akhtar <javed@gowifi.in> wrote:
yes i have changed that and its including <?php echo "Accept\n"; exit; ?>
On Mon, Feb 5, 2018 at 9:26 PM, Herwin Weststrate < herwin@quarantainenet.nl> wrote:
On 05-02-18 16:53, Javed Akhtar wrote:
i just used this authorize { update control { Auth-Type := `/bin/echo Accept` } }
and its working but form php echo its not
Does the php script include a newline in its output?
-- Herwin Weststrate - 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 - List info/subscribe/unsubscribe? See http://www.freeradius.org/ list/users.html
- 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 - List info/subscribe/unsubscribe? See http://www.freeradius.org/ list/users.html
participants (5)
-
Alan Buxey -
Alan DeKok -
Herwin Weststrate -
Javed Akhtar -
Krauss International