Community discussions

MikroTik App
 
KoenDeMol
just joined
Topic Author
Posts: 3
Joined: Tue Jun 16, 2009 8:50 pm

Add active users with session limit to HotSpot through API

Wed Sep 25, 2013 8:30 pm

Hi,

I'm trying to build a HotSpot with an external authentication page and database. After the user has succesfully authenticated him/herself, the server on which the authentication website is hosted should login the user on the MKTK device.

I already managed by doing this with an extra redirect on the client to the MKTK device servlet, but this is a hole in security. I want the server to do it directly.

Can this, by example, be done with the API? Is there a command available to dynamicly add an active user to the list?

Or can anyone think of an other way if not ...

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

Re: Add active users with session limit to HotSpot through A

Wed Sep 25, 2013 11:09 pm

Not possible at present. I too have asked for api access to authenticate a user as opposed to having to do a client side redirect.

Its also required to provide proper client support to log a user in usings a subscriber table , rather than having to bypass a user eith no bandwidth profile.
 
User avatar
boen_robot
Forum Guru
Forum Guru
Posts: 2400
Joined: Thu Aug 31, 2006 4:43 pm
Location: europe://Bulgaria/Plovdiv

Re: Add active users with session limit to HotSpot through A

Thu Sep 26, 2013 12:48 pm

Using the API, you can at least go the other way around though - you can authenticate users with MikroTik, after which the external server can check if the client is logged in. Identifying the exact user is particularly easy when both the router and web server are under the same domain name (with the server being at a subdomain), since they'd then share the session cookie.
 
alphahawk
Member Candidate
Member Candidate
Posts: 101
Joined: Fri Mar 28, 2008 6:40 pm

Re: Add active users with session limit to HotSpot through A

Tue Oct 01, 2013 6:44 pm

You can acomplish this useing mac authentication. It takes a little bit of extra api code to go kick them off so they are forced to reconnect to the hotspot but it works.