Controllerless Networks

last person joined: 2 days ago 

Instant Mode - the controllerless Wi-Fi solution that's easy to set up, is loaded with security and smarts, and won't break your budget
Expand all | Collapse all

Captive Portal Php Form with Auth Text

This thread has been viewed 9 times
  • 1.  Captive Portal Php Form with Auth Text

    Posted May 31, 2016 06:41 AM

    Hello. I need to create a External Captive Portal Form for Aruba Instant. I have various IAP 205 connected to a virtual controller.
    The authentication method i am using is authentication text. I don't need any authentication. I just need the user to fill some text fields like email, age, gender.. 

    The form appears correctly when connect to the network, but does not authorize the connection.

    My php form is like this:

     

    <HTML>
    	<HEAD>
    		External Captive Portal Page <meta http-equiv="Content-Type" content="text/html; charset=GB2312"/>
    	</HEAD>
    	<BODY>
    			<form method="POST" action="http://securelogin.arubanetworks.com/cgi-bin/login?">
    				Name: <input type="text" id="name">
    				Email: <input type="email" id="email">
    				Age: <input type="number" id="age">
    				<input type="hidden" name="authentication" value="authToken">
    				<input type="submit" name="Accept" value="Accept">
    			</form>
    	</BODY>
    </HTML>


  • 2.  RE: Captive Portal Php Form with Auth Text

    EMPLOYEE
    Posted Jun 02, 2016 05:50 AM

    Why do you have the question mark at the end?

    http://securelogin.arubanetworks.com/cgi-bin/login?


  • 3.  RE: Captive Portal Php Form with Auth Text

    Posted Jun 02, 2016 07:57 AM

    Hi, thanks for the reply.

    The reason for using the mark at the end is this post.

     

    http://community.arubanetworks.com/t5/Aruba-Instant-Cloud-Wi-Fi/IAP-external-captive-portal-HTML-code/td-p/118605 

     

    But without  the question mark it not works .



  • 4.  RE: Captive Portal Php Form with Auth Text

    EMPLOYEE
    Posted Jun 02, 2016 10:32 AM

    Okay.  Try the HTML below.  You need a user in the internal database with the username of guest and password of guest...

     

    <HTML>
      <form method="POST" ACTION="http(s)://securelogin.arubanetworks.com/swarm.cgi"> ## hostname must match certificate COMMON NAME 
        <input type="hidden" name="user" value="guest">
        <input type="hidden" name="password" value="guest">
        <input type="submit" name="Accept" value="authenticate">
      </form>
    </HTML>


  • 5.  RE: Captive Portal Php Form with Auth Text

    Posted Jun 03, 2016 06:20 AM

    So not Work

    Captura de pantalla 2016-06-03 a las 12.13.34.png

    Captura de pantalla 2016-06-03 a las 12.13.08.png



  • 6.  RE: Captive Portal Php Form with Auth Text

    EMPLOYEE
    Posted Jun 03, 2016 08:16 AM

    @gennion wrote:

    Hello. I need to create a External Captive Portal Form for Aruba Instant. I have various IAP 205 connected to a virtual controller.
    The authentication method i am using is authentication text. I don't need any authentication. I just need the user to fill some text fields like email, age, gender.. 

    The form appears correctly when connect to the network, but does not authorize the connection.

    My php form is like this:

     

    <HTML>
    	<HEAD>
    		External Captive Portal Page <meta http-equiv="Content-Type" content="text/html; charset=GB2312"/>
    	</HEAD>
    	<BODY>
    			<form method="POST" action="http://securelogin.arubanetworks.com/cgi-bin/login?">
    				Name: <input type="text" id="name">
    				Email: <input type="email" id="email">
    				Age: <input type="number" id="age">
    				<input type="hidden" name="authentication" value="authToken">
    				<input type="submit" name="Accept" value="Accept">
    			</form>
    	</BODY>
    </HTML>

    Do you have this working at all without the Age parameter?



  • 7.  RE: Captive Portal Php Form with Auth Text

    Posted Jun 06, 2016 09:53 AM

    No, it does not work. I tried it with only the button and it has not worked.



  • 8.  RE: Captive Portal Php Form with Auth Text

    Posted Jun 07, 2016 12:04 PM

    Hi,

    I understand that you are trying to use Authentication text as the mechanims.
    But for testing putpose, please make the following changes & check if they work:

    Change Type field in external CP profile to Radius Authentication

    Make the following changes to the HTTP POST:

    <form method=POST action="http://securelogin.arubanetworks.com/cgi-bin/login">
    <input type="hidden" name="user" id="user" type="text" value="test" class="text" accesskey="u" />
    <input type="hidden" id="password" name="password" type="text" value="test123" class="text" accesskey="p" />
    <input type="hidden" name="cmd" value="authenticate" />
    <input type="submit" name="Login" value="ACCEPT" class="button" />

    Add a username/password viz test/test123 in the internal database of the IAP


    When the user clicks on Accept button, the credentials (test/test123) are posted back to IAP & get authenticated against internal database & eventually user is redirected to www.msn.com.

    This happens in the background & user is never aware of it.