Page 1 of 1

Hotspot logged in message

Posted: Thu Oct 21, 2010 11:34 pm
by ahf
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.

[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 
[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" 
[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
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 
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.

Re: Hotspot logged in message

Posted: Thu Oct 21, 2010 11:39 pm
by fewi
http://wiki.mikrotik.com/wiki/Manual:Cu ... ng_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.

Re: Hotspot logged in message

Posted: Wed Oct 27, 2010 2:07 pm
by ahf
thanx