sorry, does the <a href="http://radcheck.pl">radcheck.pl</a> included in freeradius now? does you mean /usr/sbin/checkrad ?<div><br><div><br></div><div>and i search the keywords "Simultaneous mysql radius down" , but found no results i need.<br>
<br><div class="gmail_quote">2010/6/1 Anton <span dir="ltr"><<a href="mailto:warm@stack.ru">warm@stack.ru</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
It should be done by NAS. For example PPPoE and PPTP have lcp packets, If no response for some time from<br>
client to NAS then NAS decides that session is down and sends acct-stop packet to radius server. Radius<br>
server sets the corresponding record to SQL session table.<br>
<br>
Or there is another method: depending on NAS type radiusd can connect to NAS and check activity of user<br>
session directly on NAS - this is more reliable source of information. See <a href="http://radcheck.pl" target="_blank">radcheck.pl</a>.<br>
<div><div></div><div class="h5"><br>
<br>
On Tue, 1 Jun 2010 16:24:54 +0700<br>
Spacelee <<a href="mailto:fjctlzy@gmail.com">fjctlzy@gmail.com</a>> wrote:<br>
<br>
><br>
> i want to limit user's behavior, such as a username can login only once at the same time...<br>
><br>
> 1、modifiy default and inner-tunnel in<br>
><br>
> #  Session database, used for checking Simultaneous-Use. Either the radutmp<br>
> #  or rlm_sql module can handle this.<br>
> #  The rlm_sql module is *much* faster<br>
> session {<br>
>         #radutmp<br>
><br>
>         #  See "Simultaneous Use Checking Querie" in sql.conf<br>
>         sql<br>
><br>
> }<br>
> 2、modify dialup.conf in etc/raddb/sql/mysql<br>
><br>
> # Uncomment simul_count_query to enable simultaneous use checking<br>
><br>
> simul_count_query = "SELECT COUNT(*) \<br>
>                             FROM ${acct_table1} \<br>
>                             WHERE username = '%{SQL-User-Name}' \<br>
>                              AND acctstoptime IS NULL"<br>
><br>
> 3、add a entry to the table radgorucheck<br>
> INSERT INTO `radgroupcheck` ( `id` , `GroupName` , `Attribute` , `op` , `Value` )<br>
> VALUES (<br>
> NULL , ’user’, ’Simultaneous-Use’, ’:=’, ’1’<br>
> );<br>
><br>
> 4. update the user "test"  to the group "user"<br>
><br>
><br>
> i finally tried successfully, but if , i say if the radius server was down suddenly or the user logout<br>
> improperly(such as he poweroff the computer directly). then the record will still be record in the table as<br>
> he was still online ...so we need to modify the record, but how to ? can freeradius judge it by itself, or<br>
> how to judge the user if offline ?<br>
><br>
> --<br>
> Spacelee<br>
><br>
><br>
><br>
> --<br>
> Spacelee<br>
<br>
<br>
</div></div><font color="#888888">--<br>
Anton [WARM-RIPE]<br>
Stack ltd division head<br>
tel. 8 (3822) 555-797<br>
</font><div><div></div><div class="h5"><br>
<br>
-<br>
List info/subscribe/unsubscribe? See <a href="http://www.freeradius.org/list/users.html" target="_blank">http://www.freeradius.org/list/users.html</a></div></div></blockquote></div><br><br clear="all"><br>-- <br>Spacelee<br>

</div></div>