Hotspot logged in message
RouterOS general discussion

3 posts   •   Page 1 of 1
ahf
just joined
 
Posts: 21
Joined: Thu Jul 02, 2009 1:48 pm

Hotspot logged in message

by ahf » Thu Oct 21, 2010 11:34 pm

hello all,

i have configured hotspot for of my clients. this is my scenario .
Mikrotik --->> RadiusManager --->>> Users

only basic configuration. Using Radius manager for Prepaid pins.


Code: Select all
[admin@] /ip hotspot> profile pr
Flags: * - default
 0 * name="default" hotspot-address=0.0.0.0 dns-name="" html-directory=hotspot rate-limit="" http-proxy=0.0.0.0:0 smtp-server=0.0.0.0 login-by=cookie,http-chap
     http-cookie-lifetime=3d split-user-domain=no use-radius=no

 1   name="hsprof1" hotspot-address=10.0.11.1 dns-name=10.0.11.1 html-directory=hotspot rate-limit="" http-proxy=0.0.0.0:0 smtp-server=0.0.0.0
     login-by=cookie,http-chap,http-pap http-cookie-lifetime=3d split-user-domain=no use-radius=yes radius-accounting=yes radius-interim-update=1m
     nas-port-type=wireless-802.11 radius-default-domain="" radius-location-id="" radius-location-name="" radius-mac-format=XX:XX:XX:XX:XX:XX

Code: Select all
[admin@] > ip hotspo print detail 
Flags: X - disabled, I - invalid, S - HTTPS
 0 X name="hotspot1" interface=lan profile=(unknown) idle-timeout=5m keepalive-timeout=none proxy-status=""

 1   name="hotspot2" interface=lan address-pool=dhcp_pool1 profile=hsprof1 idle-timeout=5m keepalive-timeout=none addresses-per-mac=2 ip-of-dns-name=10.0.11.1
     proxy-status="running"

Code: Select all
[admin@] > radius print detail
Flags: X - disabled
 0   service=hotspot called-id="" domain="" address=10.0.11.2 secret="xxxxxxx" authentication-port=1812 accounting-port=1813 timeout=2s accounting-backup=no realm=""
[admin@] >


Now when ever they connect to hotspot they get login page. they enter username and password and click connect button.user logged in message doesn't appear.i can see that they are connected. but for users nothing happens on the browsers. they dont know login in succesfull OR failed. so they keep on pressing connect button.
i see following error messages on winbox log
Code: Select all
22:57:38 hotspot,info,debug 046441 (10.0.11.86): trying to log in by http-pap
22:57:38 hotspot,info,debug 046441 (10.0.11.86): login failed: IP 10.0.11.86 is already logged in

Code: Select all
22:56:45 hotspot,info,debug 872118 (10.0.11.188): trying to log in by http-pap
22:56:46 hotspot,info,debug 872118 (10.0.11.188): trying to log in by http-pap
22:56:46 hotspot,info,debug 872118 (10.0.11.188): login failed: already authorizing, retry later
22:56:47 hotspot,info,debug 872118 (10.0.11.188): login failed: invalid username or password
22:56:56 hotspot,info,debug 872118 (10.0.11.188): trying to log in by http-pap
22:56:57 hotspot,info,debug 872118 (10.0.11.188): trying to log in by http-pap
22:56:57 hotspot,info,debug 872118 (10.0.11.188): login failed: already authorizing, retry later
22:56:58 hotspot,info,debug 872118 (10.0.11.188): login failed: invalid username or password


this is happening for all the browser. any advice. how to show logged in message to clients.

fewi
Forum Guru
Forum Guru
 
Posts: 7734
Joined: Tue Aug 11, 2009 3:19 am

Re: Hotspot logged in message

by fewi » Thu Oct 21, 2010 11:39 pm

http://wiki.mikrotik.com/wiki/Manual:Customizing_Hotspot
request for "/login" page

* if user has successfully logged in (or is already logged in), alogin.html is displayed; if alogin.html is not found, redirect.html is used to redirect to the originally requested page or the status page (in case, original destination page was not given)
* if user is not logged in (username was not supplied, no error message appeared), login.html is showed
* if login procedure has failed (error message is supplied), flogin.html is displayed; if flogin.html is not found, login.html is used
* in case of fatal errors, error.html is showed


Make an alogin.html that displays the appropriate message to the user. As the above describes that page is loaded after a user logs in successfully, or requests a login and is already logged in.

ahf
just joined
 
Posts: 21
Joined: Thu Jul 02, 2009 1:48 pm

Re: Hotspot logged in message

by ahf » Wed Oct 27, 2010 2:07 pm

thanx

3 posts   •   Page 1 of 1

Who is online

Users browsing this forum: Baidu [Spider], Google [Bot], jkarras, sajjadsdk and 31 guests

It is currently Sun Dec 21, 2014 12:31 am