[Chilli] Help with ChilliController
Eric Chaves
eric at craftti.com.br
Sun Jan 19 17:57:02 UTC 2014
Hi Folks,
I configured mu chilli server to redirect user's to an external captive
portal, which is nothing more than an HTML page that loads a copy of
ChilliLibrary.js to instantiate the chilliController JS object.
Then, in the web page I call the logon method informing user and password (
eg.: chilliController.logon('test','testing') ) but the user never gets
authenticated.
At this point, my server is performing the following steps:
1) client connects to the open wifi and gets an IP address from chilli
server (10.1.0.1).
2) when client tries to access any website it is redirected to my captive
portal (sample page hosted in a second server but in the same network of
chilli server - 10.1.0.4)
3) The javascript from the portal page parses the query string sent in
redirection and setup uamserver (10.1.0.1) and uamport (3990) of
chilliController (and also set chilliController.debug = true).
4) javascript from the portal page calls chilliController.logon with user
test and password testing.
The output from chilliController debug is:
chilliController.logon( "test" , "testing " )
ChilliLibrary.js:604<http://10.1.0.4:3333/js/ChilliLibrary.js>
chilliController.logon: asking for a new challenge
ChilliLibrary.js:604<http://10.1.0.4:3333/js/ChilliLibrary.js>
chilliJSON: getting http://10.1.0.1:3990/json/status . Waiting for reply ...
ChilliLibrary.js:604 <http://10.1.0.4:3333/js/ChilliLibrary.js>
chilliJSON: JSON reply received in 43 ms version = 1.0 clientState = 0
challenge = a8565bbb95980b8f9d40c9befcec8863 location = [object Object]
name = xxxxxxx redir = [object Object] originalURL =
http://google.com/redirectionURL = logoutURL =
http://10.1.0.1:3990/logoff ipAddress = 10.1.0.4 macAddress =
00-26-BB-15-CE-19 ChilliLibrary.js:604<http://10.1.0.4:3333/js/ChilliLibrary.js>
Entering logonStep 2
ChilliLibrary.js:604<http://10.1.0.4:3333/js/ChilliLibrary.js>
chilliController.logonStep2: Got challenge =
a8565bbb95980b8f9d40c9befcec8863
ChilliLibrary.js:604<http://10.1.0.4:3333/js/ChilliLibrary.js>
chilliController.logonStep2: Calculating CHAP-Password =
dfb74d8e6575c8f94b1dd8327ecea19c
ChilliLibrary.js:604<http://10.1.0.4:3333/js/ChilliLibrary.js>
chilliJSON: getting
http://10.1.0.1:3990/json/logon?username=test&response=dfb74d8e6575c8f94b1dd8327ecea19c.
Waiting for reply ...
ChilliLibrary.js:604 <http://10.1.0.4:3333/js/ChilliLibrary.js>
chilliJSON: JSON reply received in 1025 ms version = 1.0 clientState = 0
challenge = 63495061fae7607e8ac35e0b05962397 redir = [object Object]
originalURL = http://google.com/ redirectionURL = logoutURL =
http://10.1.0.1:3990/logoff ipAddress = 10.1.0.4 macAddress =
00-26-BB-15-CE-19 ChilliLibrary.js:604<http://10.1.0.4:3333/js/ChilliLibrary.js>
chilliController.processReply: Calling onUpdate. clienState = 0
Iam sure that username and password is ok so I can't figure what I'm doing
wrong. Any ideas?
Regards,
Eric Chaves
(11) 98139-9880
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.coova.org/pipermail/chilli/attachments/20140119/dee033a7/attachment.html>
More information about the Chilli
mailing list