Page 1 of 1

Freeradius/mysql multiple sessions for a 'demo' user.

Posted: Fri May 19, 2006 3:16 pm
by Protocol

I have to create a 'demo' user in freeradius (with mysql) for clients to test our 'hotspot' network before buying, it works fine for one session but I need the 'demo' user to be able to log in more than once, I added the 'Simultaneous-Use' attribute with a value of '16' in freeradius, with the correct operator ':='
From freeradius' side it works fine, it sends the 'Access-Accept' correctly to the Microtik but the Microtik seem to ignore it and replies 'No more session allowed for this user'
Note that we can not use a local or 'trial' user because we must be able to disable the 'demo' user easily whenever we want to, on all of the XX Microtiks we have.
And I can't find any option like 'shared-users' or 'Simultaneous-Use' anywhere outside the local users profiles.. normal users should be able to log in twice, and demo users 16 times.
I think at some point it worked (really not sure, tried so many times..), maybe I changed some other option which disabled something..?
Can't find which one anyway, and no, we obviously don't give the 'demo' user any fixed IP address with freeradius, the IP is assigned by the Microtik dhcp server.
Also, the radius accounting seem to work fine.

Thanks, bye.

Posted: Sat May 20, 2006 10:28 pm
by spirosco
You have to enable the "interim-update".

Posted: Sun May 21, 2006 12:45 pm
by Protocol
interim-update was set to 'receive' I changed it to 5s?
Still the same, but I found a solution:

I had to change the shared-users from the default hotspot user profile to 16,
and with freeradius, instead of allowing 16 users only for demo, limit the other users than demo to Simultaneous-Use := 1

Re: Freeradius/mysql multiple sessions for a 'demo' user.

Posted: Wed Aug 08, 2012 2:05 pm
by fruiz002

Could you please tell me how to create the demo user in freeradius to be abel to use the hotspot onces? this is what I want to do.

Thanks a lot..;-))


Re: Freeradius/mysql multiple sessions for a 'demo' user.

Posted: Wed Aug 08, 2012 2:31 pm
by TheWiFiGuy
The radius attribute on the Mikrotik for Simultaneous-Users is actually Port-Limit

Set a port limit reply in the radreply (not radcheck) and it will set the mikrotik correctly.