Community discussions

MikroTik App
 
Protocol
just joined
Topic Author
Posts: 6
Joined: Sat May 06, 2006 12:06 pm

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

Fri May 19, 2006 3:16 pm

Hi,

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.
 
spirosco
just joined
Posts: 14
Joined: Sun Nov 06, 2005 4:03 pm

Sat May 20, 2006 10:28 pm

You have to enable the "interim-update".
 
Protocol
just joined
Topic Author
Posts: 6
Joined: Sat May 06, 2006 12:06 pm

Sun May 21, 2006 12:45 pm

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
 
fruiz002
just joined
Posts: 13
Joined: Fri Jan 06, 2012 1:35 pm

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

Wed Aug 08, 2012 2:05 pm

Hello,

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..;-))

Regards
 
User avatar
TheWiFiGuy
Member
Member
Posts: 351
Joined: Thu Nov 24, 2011 7:26 pm
Location: UK

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

Wed Aug 08, 2012 2:31 pm

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.
----------------------
Mikrotik Consultant.
MTCNA, MTWCE, MTCTCE, MTCRE, MTCINE

Who is online

Users browsing this forum: akimsa, alexanwar, ichihaifu, Majestic-12 [Bot] and 80 guests