Aruba Instant & Cloud Wi-Fi

Reply
Occasional Contributor I
Posts: 5
Registered: ‎02-16-2016

Captive Portal Php Form with Auth Text

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>
Guru Elite
Posts: 19,982
Registered: ‎03-29-2007

Re: Captive Portal Php Form with Auth Text

[ Edited ]

Why do you have the question mark at the end?

http://securelogin.arubanetworks.com/cgi-bin/login?
Colin Joseph
Aruba Customer Engineering

Looking for an Answer? Search the Community Knowledge Base Here: Community Knowledge Base

Validated Reference Design Guides : http://community.arubanetworks.com/t5/Validated-Reference-Design/tkb-p/Aruba-VRDs
Occasional Contributor I
Posts: 5
Registered: ‎02-16-2016

Re: Captive Portal Php Form with Auth Text

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 .

Guru Elite
Posts: 19,982
Registered: ‎03-29-2007

Re: Captive Portal Php Form with Auth Text

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>
Colin Joseph
Aruba Customer Engineering

Looking for an Answer? Search the Community Knowledge Base Here: Community Knowledge Base

Validated Reference Design Guides : http://community.arubanetworks.com/t5/Validated-Reference-Design/tkb-p/Aruba-VRDs
Occasional Contributor I
Posts: 5
Registered: ‎02-16-2016

Re: Captive Portal Php Form with Auth Text

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

Guru Elite
Posts: 19,982
Registered: ‎03-29-2007

Re: Captive Portal Php Form with Auth Text


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?

Colin Joseph
Aruba Customer Engineering

Looking for an Answer? Search the Community Knowledge Base Here: Community Knowledge Base

Validated Reference Design Guides : http://community.arubanetworks.com/t5/Validated-Reference-Design/tkb-p/Aruba-VRDs
Occasional Contributor I
Posts: 5
Registered: ‎02-16-2016

Re: Captive Portal Php Form with Auth Text

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

Aruba Employee
Posts: 52
Registered: ‎03-26-2013

Re: Captive Portal Php Form with Auth Text

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.

Search Airheads
Showing results for 
Search instead for 
Did you mean: