[rad] Re: pseudo-newbie exec scripts and session-time

Ivan Kalik tnt at kalik.net
Fri Jun 12 00:11:31 CEST 2009


> Okay, I'm banging my head up against the expected proverbial wall.
> Please remember I'm stuck with old 1.x version..... on Centos

Which is not supported.

>
> I'm trying to get a script to execute and set the 'Session-Timeout'
> value. I've defined the script thusly:
>
>          exec timecalc {
>                  wait = yes
>                  program = "/usr/local/etc/radius_timecalc
> %{User-Name}..."
>                  input_pairs = request
>                  output_pairs = reply
>                  # packet_type = Access-Accept
>          }
>
> (I've tried it with and without the packet_type....)
>
> I've tried placing just "timecalc" into the post-auth and
> alternately the auth sections.

Where did you get that ides? Exec module comments do say how to call a
script.

> I tried using the sytax:
>       update reply {
>               timecalc
>       }
> And also tried:
>       update reply {
>                Session-Time := "200"
>       }

You can't use unlang in 1.x.

Ivan Kalik
Kalik Informatika ISP




More information about the Freeradius-Users mailing list