Use Max-Daily-Session But Timeout Session every 30mins if limit not reached
Uchenna Nebedum
nebeduch at gmail.com
Sun Jul 22 17:28:43 CEST 2018
Thanks Alan, Did it and it worked, also happened to read in the conf, where
it was stated to put all unlang in the post-auth. Thanks Again.
Uchenna Nebedum
On Fri, Jul 20, 2018, 08:56 Uchenna Nebedum <nebeduch at gmail.com> wrote:
> Thanks a lot for the help Alan, From what i understand i should add the
> unlang in the postauth section rather than immediately after dailycounter
> right?.
>
> Uchenna Nebedum
>
> On Thu, Jul 19, 2018, 14:27 Alan DeKok <aland at deployingradius.com> wrote:
>
>> On Jul 19, 2018, at 2:50 AM, Uchenna Nebedum <nebeduch at gmail.com> wrote:
>> > I am using dailycounter for Max-Daily-Session but i still want to
>> timeout
>> > user session every 30mins till Max-Daily-Session reached. A way i
>> thought
>> > to achieve this would be to add unlang after dailycounter in the conf,
>> > something like
>> >
>> > (if reply Session-Timeout > 1800){ Session-Timeout := 1800 }
>>
>> Yes, something like that will work.
>>
>> > I'm not sure if this method would work and not sure of the implications.
>> > Not too sure of what the unlang should look like. Please any help would
>> be
>> > greatly appreciated.
>>
>> $ man unlang
>>
>> Look for "enforcement and filtering"
>>
>> and read the dozens of examples in the config files. It's not
>> difficult.
>>
>> post-auth {
>> ...
>> update reply {
>> Session-Timeout <= 1800
>> }
>> ...
>> }
>>
>> Alan DeKok.
>>
>> -
>> List info/subscribe/unsubscribe? See
>> http://www.freeradius.org/list/users.html
>
>
More information about the Freeradius-Users
mailing list