Hotspot : username of password not correct

Hello,

I’m playing around with the Hotspot functions of a mikrotik router (RB2011UAS-2HnD-IN with ROS version 6.12).
My uplink is using DHCP client on port 10, Port 1 till 5 is configured as “switch” (master port = 1) with DHCP server.

The WiFi is for the hotspot functions.

Now, I’ve created 2 users on http://10.100.0.1/userman

  • kris
  • isabel

With some restrictions to play with : 1 hour of internet usage, bandwidth limitations, …

When i connect to the wifi hotspot, i get the well known portal that asks me for my login and password. When i try to login with the login and password i’ve created for kris & isabel, i get the error that my username or password is incorrect.

When i use “admin” : i can login without problems.

Is there something i do wrong?

Best regards!


My export file is on Pastebin : http://pastebin.com/6VDSpGHi

Do not use pastebin, use the forum,
pastebin is payed for the advertisiong, this forum and the users not.

And also, pastebin if not correctly used reveal all previously written.

/tool user-manager user
add customer=admin disabled=no name=kris password=> sky8 > shared-users=1 wireless-enc-algo=none wireless-enc-key=“” wireless-psk=“”
add customer=admin disabled=no name=isa password=> w
***rd > shared-users=1 wireless-enc-algo=none wireless-enc-key=“” wireless-psk=“”

You miss the RADIUS configuraion,
if you not configure the hotspot autentication by RADIUS (user-manager) and on user-manager allow the routerboard as RADIUS, you can use only user added on hotspot/user tab.

paste this on terminal to fix:

/ip hotspot profile
set hsprof1 use-radius=yes;
/radius
add address=10.100.0.1 secret=myshared service=hotspot;
/radius incoming
set accept=yes;
/tool user-manager router
add coa-port=3799 customer=admin disabled=no ip-address=10.100.0.1 log=auth-fail,acct-fail name="RADIUS" shared-secret=myshared use-coa=no;
/ip hotspot user
remove [find];

Thanks a lot rextended for your answer!

I tought that placing it on pastebin was better for reading/understanding the ROS code. When i see it on this forum from time to time, it’s a large piece of text. So my excuses for this.

Your answer did help me a lot. I’ve configured it like you have suggested, but now i have this error when i try to login:
RADIUS server is not responding

How can i check if RADIUS is up and running?

Best regards,
Kris

It’s hard to understand why is not working, I made the script accordingly what I read in your export…

I don’t think that you’ve made a mistake in your script, it seems to be the radius server that is down. Are their any options to start the radius server?

the radius server, aka “user-manager” start at RouterBoard start…

Try this:
substitute 10.100.0.1 on my script with ip address obtained from dhcp client,
I think is here the solution

if it works is possible to schedule one script to mantain aligned the value,
better are if you can put one static IP instead of dhcp client.

Hmm well i already tried with restarting the router…But it didn’t solve the problem.

You already answer?

Read again my provious post, I have added one thing…

/radius
print
set 0 address=x.x.x.x;
/tool user-manager router
print
set 0 ip-address=x.x.x.x;

Any news?

Well there is some news : it’s all up and working right now!
I’ve checked again after your answer and the secrets…weren’t the same :blush:

So now i’ve changed both and it’s working like a charm!

Thanks for all your patience and answers!

Well done.