AC50 Web portal

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.

AC50 Web portal

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.
AC50 Web portal
AC50 Web portal
2018-12-26 22:40:45

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.

  0      
  0      
#1
Options
8 Reply
Re:AC50 Web portal
2018-12-27 01:41:03
dude, what kind of exernal did you use? WinRadius? FreeRadius?
  0  
  0  
#2
Options
Re:Re:AC50 Web portal
2018-12-27 10:01:38

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

  0  
  0  
#3
Options
Re:AC50 Web portal
2018-12-28 08:44:22

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);

 

 

  0  
  0  
#5
Options
Re:AC50 Web portal
2018-12-28 11:40:04

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

  0  
  0  
#6
Options
Re:Re:AC50 Web portal
2019-01-02 07:46:40

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.

  0  
  0  
#7
Options
Re:Re:Re:AC50 Web portal
2019-01-04 15:46:50

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!}

 

 

 

  0  
  0  
#8
Options
Re:Re:Re:Re:AC50 Web portal
2019-01-08 08:03:32

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.

  0  
  0  
#9
Options
Re:Re:Re:AC50 Web portal
2022-01-26 20:10:59

@Alii 

this is the same problem that is happening the product is years old and nobody says anything?
  0  
  0  
#10
Options

Information

Helpful: 0

Views: 2384

Replies: 8

Related Articles