Simultaneous-Use, Session section not executing
Igor Smitran
sigor at blic.net
Sat Jan 11 23:46:53 UTC 2025
As far as i remember you need to enable checkrad.pl to have
Simultaneous-Use working.
SQL query will retrieve row with Accounting-Stop=NULL and get session id
from it.
checkrad.pl will check if that session id exists on NAS or this row was
not updated (missing/missed acct stop packet from NAS).
If session exists on NAS then freeradius will respond with reject
message "Simultaneous use not allowed".
Other members of group can correct me if i am wrong regarding this.
Igor
On 12.1.2025. 00:20, Erdal Emlik via Freeradius-Users wrote:
> Hi, I’m trying to implement Simultaneous-Use with postgreSQL. I add Simultaneous-Use for every group at radgroupcheck. Uncommented simultaneous use checking queries at queries.conf. Uncommented sql in default and inner-tunnel at session section. Trying to simulate Simultaneous-Use from proxy. I know NAS sending accounting-request. I’m sending manual Access-Request and I sent Accounting-Response before that and I see at my radacct table I have accounting record with acctstoptime is null. So at the end of the day, I have access-request, I have accounting at the radacct table which it has acctstoptime is null. I expect to see when I send Access-Request RADIUS should return Access-Reject because user already have session with acctstoptime is null. Here is my radius debug and Im not seeing executing of session section in my debug.
>
> FreeRADIUS Version 3.2.1
> Copyright (C) 1999-2022 The FreeRADIUS server project and contributors
> There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
> PARTICULAR PURPOSE
> You may redistribute copies of FreeRADIUS under the terms of the
> GNU General Public License
> For more information about these matters, see the file named COPYRIGHT
> Starting - reading configuration files ...
> ...
More information about the Freeradius-Users
mailing list