Community discussions

MikroTik App
 
mstuebner
newbie
Topic Author
Posts: 35
Joined: Wed Oct 07, 2009 3:47 am

Accounts created with Usermanager not visible in winbox?

Sat Oct 17, 2009 6:48 pm

Hi gents,

after struggeling since 2 weeks I want to ask the question whether accounts/users
created should show up in winbox under IP HOTSPOT USERS?
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: Accounts created with Usermanager not visible in winbox?

Sat Oct 17, 2009 9:00 pm

No. They are users in the User Manager database only. User Manager cannot be administrated via Winbox (except for through the built in Terminal under "/tool user-manager")
 
mstuebner
newbie
Topic Author
Posts: 35
Joined: Wed Oct 07, 2009 3:47 am

Re: Accounts created with Usermanager not visible in winbox?

Sat Oct 17, 2009 10:44 pm

No. They are users in the User Manager database only. User Manager cannot be administrated via Winbox (except for through the built in Terminal under "/tool user-manager")
But even accounts created using "/tools user-manager" as described in http://wiki.mikrotik.com/wiki/User_Mana ... ot_Example do not lead to that those users show up in the web user manager, nor the other way around. (version 3.30)

And event worst (keep in mind that everthing is running on one and the same RB433) when I try to login to the hotspot the login tells, that it cannot reach the RADIUS. How can that be, as they are running on the same box. Are there any means for debugging?
 
eneimi
Member
Member
Posts: 387
Joined: Sun Sep 09, 2007 12:55 pm

Re: Accounts created with Usermanager not visible in winbox?

Sun Oct 18, 2009 7:55 pm

Users created under
/ip hotspot user
are visible under the 'hotspot users' tab in winbox. They can login to the hotspot without being queried in the usermanager database.
Users created under
/tool user-manager user
are not visible under any tab in winbox and can only be viewed via usermanager web interface or command line (/tool user-manager user print).
If you have created a hotspot server and have created users in usermanager, when those users are logged in they will appear under /ip hotspot active (with R preceedinh the login name).
If you have created a user in usermanager alone and radius server is not reachable, it is likely you haven't configured usermanager properly.
You can post your config for us.
 
mstuebner
newbie
Topic Author
Posts: 35
Joined: Wed Oct 07, 2009 3:47 am

Re: Accounts created with Usermanager not visible in winbox?

Sun Oct 18, 2009 9:11 pm

If you have created a user in usermanager alone and radius server is not reachable, it is likely you haven't configured usermanager properly.
You can post your config for us.
After re-doing it once more I can see users generated in UM under /tools user-manager user print. The problem that the login complains about the RADIUS being not reachable remains.

What config would be relevant and helpful, not to post all here?
 
eneimi
Member
Member
Posts: 387
Joined: Sun Sep 09, 2007 12:55 pm

Re: Accounts created with Usermanager not visible in winbox?

Mon Oct 19, 2009 12:33 am

/ip hotspot profile print
/radius print
/tool user-manager customer
/tool user-manager router print
Edit sensitive entries.
 
mstuebner
newbie
Topic Author
Posts: 35
Joined: Wed Oct 07, 2009 3:47 am

Re: Accounts created with Usermanager not visible in winbox?

Mon Oct 19, 2009 2:03 am

/ip hotspot profile print
/radius print
/tool user-manager customer
/tool user-manager router print
Edit sensitive entries.
Thanx for your help.

Situation changed a bit, as having the radius on the RB433 was not the final configuration anyway.

So I did setup a freeRadius on a server configured it and entered it and entered the data in RADIUS:

[admin@MikroTik] > /radius export
# oct/18/2009 23:02:04 by RouterOS 3.30
# software id = LM49-IV0Q
#
/radius
add accounting-backup=no accounting-port=1813 address=192.168.178.32 \
authentication-port=1812 called-id="" comment="" disabled=no domain="" \
realm="" secret=testing123 service=hotspot timeout=300ms
/radius incoming
set accept=no port=3799
[admin@MikroTik] >

Since then, when one tries to long-in, the request goes to the freeRadius and gets a correct answer from there. For some unknown reasons the hotspot doesn't care it and shows on the login screen that the RADIUS wouldn't answer.

Any hint where to look?

[admin@MikroTik] > /ip hotspot export
# oct/18/2009 23:04:48 by RouterOS 3.30
# software id = LM49-IV0Q
#
/ip hotspot profile
set default dns-name="" hotspot-address=0.0.0.0 html-directory=hotspot http-cookie-lifetime=3d \
http-proxy=0.0.0.0:0 login-by=cookie,http-chap name=default rate-limit="" smtp-server=0.0.0.0 \
split-user-domain=no use-radius=no
add dns-name="" hotspot-address=192.168.100.1 html-directory=hotspot http-proxy=0.0.0.0:0 login-by=\
http-chap name=hsprof1 nas-port-type=ethernet radius-accounting=yes radius-default-domain="" \
radius-interim-update=received radius-location-id=RB433_MS radius-location-name="" \
radius-mac-format=XX:XX:XX:XX:XX:XX rate-limit="" smtp-server=0.0.0.0 split-user-domain=no \
use-radius=yes

/ip hotspot
add address-pool=dhcp_pool1 disabled=yes idle-timeout=none interface=ether3 keepalive-timeout=none \
name=HotSpot1 profile=default
add disabled=no idle-timeout=5m interface=wlan1 keepalive-timeout=none name=hotspot1 profile=hsprof1

/ip hotspot user profile
set default address-pool=dhcp_pool1 idle-timeout=none keepalive-timeout=2m name=default shared-users=20 \
status-autorefresh=1m transparent-proxy=no

/ip hotspot service-port
set ftp disabled=no ports=21

/ip hotspot user
add comment="" disabled=no name=user1 password="" profile=default server=hotspot1


Thanx in advance.
 
mstuebner
newbie
Topic Author
Posts: 35
Joined: Wed Oct 07, 2009 3:47 am

Re: Accounts created with Usermanager not visible in winbox?

Mon Oct 19, 2009 10:41 pm

I changed to an external freeradius and still had the same symptom, but after a reboot it was gone.

Thanx for any hint in this thread.
Matthias