Exec-Program-Wait

Alan DeKok aland at deployingradius.com
Fri Nov 23 09:13:08 CET 2007


Felipe Ceglia - PY1NB wrote:
> I am trying to setup a "prepaid" style system on my freeradius. All I
> want is to check user name against a perl script that will let user get
> in or not.

  You should use rlm_perl rather than Exec-Program-Wait

> I put this on users file, but the script is not being run:
> 
> DEFAULT Called-Station-Id == "hotspot_shop_tere"  #THIS IS LINE 155
>         Exec-Program-Wait = "/etc/raddb/scripts/hotspot_shop_tere.pl %U",

  You will need to add Auth-Type := Accept to the first line (with DEFAULT).

> DEFAULT Called-Station-Id == "hotspot_shop_tere",  Acct-Status-Type == Stop
>         Exec-Program-Wait = "/etc/raddb/scripts/hotspot_shop_tere.pl %U
> %{AcctSessionTime}",

  This entry should go into the acct_users file, not the "users" file.

  Alan DeKok.



More information about the Freeradius-Users mailing list