Script for logging out user from their session

Deepak d88pak at gmail.com
Sat Aug 1 17:53:01 CEST 2009


> Yes, there is a probloem when counter query returns NULL (no records for
> that user; once there is accounting for that user everything works fine),
> and it's not just that counter. This seems to be the probloem:
>
>        radius_xlat(querystr, MAX_QUERY_LEN, responsestr, request, sql_escape_func);
>
>        if (sscanf(querystr, "%u", &counter) != 1) {
>                DEBUG2("rlm_sqlcounter: No integer found in string \"%s\"",
>                       querystr);
>                return RLM_MODULE_NOOP;
>        }
>
> That returns noop in case of NULL as well. If query result is NULL it
> should set counter too 0 and continue. I am not a programmer, so I don't
> know if that can be tested there. If not, queries for counters can be
> altered to return 0 in case of NULL.
>
>
> Ivan Kalik
> Kalik Informatika ISP
>
>

Well, I cannot give opinion on this regard because I really don't know
what is exactly going on inside...However, modification of SQL did the
job.

By the way for "Max-All-Session" to work, do I need to run chilli with
"coaport 3977" and "coanoipcheck" option? or without it will just do
fine?

Currently chilli is running with these options.

Thanks



-- 
==============================
Registered Linux User #460714
Currently Using Fedora 10, CentOS 5.3
==============================




More information about the Freeradius-Users mailing list