Can we login a user to HotSpot with MikroTik commands instead of using “login.html” or redirection solutions?
Imagine I have a user with the following username and password: (User1 / 123456)
How can I login the user without redirect him/her to the login.html page?
Is there any command (via MikroTik console) available?
But I have a Radius Server for my HotSpot and I want to use username/password of the user for login him/her into the system.
Is there any command that I can add the user in the “Active Users” or other commands to login them?
No, you can;t add a username into active. This action is dynamicly, and only way for that is to manually bind a specific mac to ip and than walledgarden it.
OK. I can try
If user connects to your hotspot, it creates a row int “/ip hotspot host”.
User have to login first time, and after that it will create a row in “/ip hotspot active”. There you can check username IP.
Now you can bind that user with specific MAC, and choose “bypassed” for a type of authorization.
On the end you will have a MAC (not a username) in ip-bindings, that will allow to connect that device to hotspot without login process.
I know that you want to do that with username, but try to thing: how you can know that a user want to use a specific username without login form? Answer is: You just can’t. But you can do that if you know that user, and a user can be defined by it;s MAC addres or static ip (so MAC anotherway).