AC50 Web portal
Dear community,
I'm seeking for your help about this problem, hope you'll have an answer for me.
I have an AC50 controller with 15 CAP1750 AP, I want to create an external web portal that collect information s from our guests before they can have access to the internet.
I managed to create that external web portal, but I didn't found how I send a response to the controller. I followed the solution for the EAP :
https://community.tp-link.com/en/business/forum/topic/151579?page=1
but no success, the controller say that there's no page found at the address /portal/auth.
If somebody have a solution for this, or there's a documentation about this, I'll be verry greathfull.
Thank you in advance.
- Copy Link
- Subscribe
- Bookmark
- Report Inappropriate Content
- Copy Link
- Report Inappropriate Content
Hello,
Thank you for your reply.
In the example :
https://community.tp-link.com/en/business/forum/topic/151579?page=1
I'm talking about only step 4, the step where I submit the form to the contoller.
Thanks
- Copy Link
- Report Inappropriate Content
Hi Alii,
Firstly, we have a FAQ introducing how to configure external portal function on AC50/500. You can refer to it via this link:
http://www.tp-link.com/en/faq-1350.html
Secondly, for the API used for external portal server (web server) to cooperate with AC50/500, you can refer to the information below:
1. The external web server should include the following API to intercept some necessary attributes out from the HTTP message forwarded from the AC controller.
function doGet(url, data, success, failed)
{
var param = "";
for (var key in data)
{
param += key+"="+encodeURIComponent(data[key]) + '&';
}
url += "?"+param.substr(0, param.length-1);
var locationStr = window.location.search;
var urlPara = locationStr.substr(locationStr.indexOf('?')+1);
url += "&" + urlPara;
var xmlHttp = window.XMLHttpRequest ? (new XMLHttpRequest()) : (new ActiveXObject("Microsoft.XMLHTTP"));
xmlHttp.open("GET", url);
xmlHttp.setRequestHeader("Accept","text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8");
xmlHttp.send(null);
xmlHttp.onreadystatechange = function()
{
if ((xmlHttp.readyState == 4))
{
if (xmlHttp.status == 200)
{
if (typeof success == 'function')
{
success.call(null, xmlHttp.responseText);
}
}
else
{
if (typeof failed == 'function')
{
failed.call(null, xmlHttp.responseText);
}
}
}
else
{
}
}
}
2. The external web server should include the following API to submit user credential to the AC controller so that the AC will then authenticate with remote radius server.
doGet(serverUrl, {"Submit":"Logon","authtype":"5", "username":$user.value, "password":$pwd.value}, onSuccess, onFailed);
- Copy Link
- Report Inappropriate Content
Dear Simon,
Thank you for your reply.
I'm stick on the line :
doGet(serverUrl, {"Submit":"Logon","authtype":"5", "username":$user.value, "password":$pwd.value}, onSuccess, onFailed);
and I don't know what the serverUrl should be? I tried the ip address of the AC50 controller but it didn't work, it says : The request url was not found on this server.
By the way, I use local authentication server like in the documentation :
https://www.tp-link.com/us/faq-1349.html
Thanks
- Copy Link
- Report Inappropriate Content
Alii wrote
Dear Simon,
Thank you for your reply.
I'm stick on the line :
doGet(serverUrl, {"Submit":"Logon","authtype":"5", "username":$user.value, "password":$pwd.value}, onSuccess, onFailed);
and I don't know what the serverUrl should be? I tried the ip address of the AC50 controller but it didn't work, it says : The request url was not found on this server.
By the way, I use local authentication server like in the documentation :
https://www.tp-link.com/us/faq-1349.html
Thanks
Dear @Alii
The server URL should be the format like this:
acIp:port
For example:
192.168.0.253:8080
Thanks.
- Copy Link
- Report Inappropriate Content
Dear Simon,
I tested the url but I got the error :
404 Not Found
I tried http://192.168.1.253:8080/portal/auth and I got :
{Error: Parameter is illegal!}
- Copy Link
- Report Inappropriate Content
Alii wrote
Dear Simon,
I tested the url but I got the error :
404 Not Found
I tried http://192.168.1.253:8080/portal/auth and I got :
{Error: Parameter is illegal!}
Dear Alii,
Is the server located at the 192.168.1.253? I thought judging from the snaps you sent to me earlier via ticket, it should be a DDNS domain name. Can you please help confirm?
Thanks.
- Copy Link
- Report Inappropriate Content
this is the same problem that is happening the product is years old and nobody says anything?
- Copy Link
- Report Inappropriate Content
Information
Helpful: 0
Views: 2353
Replies: 8
Voters 0
No one has voted for it yet.