> 
> Ok. I did as you say. But the result was same. :(
>
Oh sorry! My working rlm_sql.c (half year old FreeRadius-0.1) has ugly hack:

#if 0
        if (paircmp(request->packet->vps, check_tmp, &reply_tmp) != 0) {
                radlog(L_INFO, "rlm_sql: Pairs do not match [%s]", sqlusername);
                return RLM_MODULE_NOTFOUND;
        }
#endif

I am use 'Simultaneous-Use' in real life. NAS - Hiper Total Control

My radcheck:
id  | username    |    attribute     | value
----+-------------+------------------+--------------
235 | Mag         | Simultaneous-Use | 1

My radreply:
id | username  |     attribute     |     value     
----+----------+-------------------+---------------
 5 | Mag       | Framed-Ip-Address | 217.106.186.1

You may recompile freeradius, then rewrite rlm_sql.so.0 and other
binaries rlm_sql into our libdir (cd src/module/rlm_sql; make install)
and send kill -HUP 'radiusd.pid' for reload module.

        Best wishes, Mag
-- 
Nikolay P. Romanyuk - NR42-RIPE, NPR1-RIPN

- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to