Controllerless Networks

Reply
Contributor I

IAP external captive portal HTML code?

Have any of you created external portal page for IAP? What is the HTML code for that? I used the same that I use for controller based and it doesn't work.

 

Here is the code for controller based:

 

<form method="post" autocomplete="off" action="https://securelogin.arubanetworks.com/auth/index.html/u" onsubmit="return checkFormValues(this);"></select>
<strong>Username</strong>
<input accesskey="u" name="username" value=" type="text">
<strong>Password</strong>
<input accesskey="p" name="password" value=" type="password">
<input value="Login" type="submit">

</form>

 

Thanks,

 

JR

Guru Elite

Re: IAP external captive portal HTML code?

Try 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">
Username: <input name=user value="">
Password: <input name=password value="">
<input name=cmd value="authenticate" type="hidden">
<input name=mac value="" type="hidden">
<input name=ip value="" type="hidden">
<input name=essid value="" type="hidden">
<input name=url value="http://www.google.com" type="hidden">
<BR><input type="submit" name="Login" value="login" class="button" />
</form>
</BODY>
</HTML>

 



Colin Joseph
Aruba Customer Engineering

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

Contributor I

Re: IAP external captive portal HTML code?

Thank you!

New Contributor

Re: IAP external captive portal HTML code?

Hi, 

what is the html code for a external Acknowledged portal,

 

i tried 

 

1.

<form method="POST" action="https://securelogin.arubanetworks.com/swarm.cgi">
<input type="hidden" name="orig_url" value="687474703a2f2f7777772e676f6f676c652e6e6c2f" />
<input type="hidden" name="opcode" value="cp_ack" />
<input type="submit" value="Accept"/>
</form>

 

2.

<form method="POST" action="https://securelogin.arubanetworks.com/swarm.cgi?opcode=cp_generate&orig_url=687474703a2f2f7777772e6d7366746e6373692e636f6d2f7265646972656374">
<input type="hidden" name="orig_url" value="687474703a2f2f7777772e676f6f676c652e6e6c2f" />
<input type="hidden" name="opcode" value="cp_ack" />
<input type="submit" value="Accept"/>
</form>

 

3.

 

<form method="POST" action="https://securelogin.arubanetworks.com/swarm.cgi">
<input type="hidden" name="orig_url" value="securelogin.arubanetworks.com" />
<input type="hidden" name="opcode" value="cp_ack" />
<input type="submit" value="Accept"/>
</form>

 

but i'm not succeeding

any help is welcome!

New Contributor

Re: IAP external captive portal HTML code?

I used code like the below:

 

<HTML>
<form method=POST action="http://securelogin.arubanetworks.com/cgi-bin/login?">
<input name=user value="guest" type="hidden">
<input name=password value="guest" type="hidden">
<input name=cmd value="authenticate" type="hidden">
<input name=mac value="" type="hidden">
<input name=ip value="" type="hidden">
<input name=essid value="" type="hidden">
<input name=url value="http://www.google.com" type="hidden">

<p align="center">
<BR><input type="submit" name="Login" value="Accept" class="button" />
</form>
</p>
</HTML>

 

This works, but I would rather have the user go to their home page instead of "www.google.com" after they click "Accept". 

 

What would be the best way to accomplish this?

Aruba Employee

Re: IAP external captive portal HTML code?

Not 100% sure how this works in regards to IAPs, but you do have code in there that's defining "url" as http://www.google.com -- try removing that?

<input name=url value="http://www.google.com" type="hidden">
New Contributor

Re: IAP external captive portal HTML code?

We did try that.  The first time we were testing the line of code was in there which redirected it to Google when they clicked "Accept".  Then we decided we would really want it to go to their home page.  So we took the line out, but it is still going to Google for some reason.  I'm thinking that maybe it is cached on the IAP maybe.  We restarted the IAP, but that didn't help.  It seems that whatever site it went to once, gets 'stuck' in the config and that's where they go each subsequent time even if we remove the line.  I'm wondering if there is any way to clear that or other html code that would redirect them to their home page.

Guru Elite

Re: IAP external captive portal HTML code?

Maybe it is cached in the user's browser?


Colin Joseph
Aruba Customer Engineering

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

New Contributor

Re: IAP external captive portal HTML code?

We tried it on a laptop and on a phone and both had the same result.  On the laptop, we did clear the cache & temp files in our testing and it insisted on going back to google anyway.

Aruba Employee

Re: IAP external captive portal HTML code?

Have you checked to see you're not defining a "Redirect URL" in your IAP config (as opposed to your HTML code)?

 

IAP > Security tab > External Captive Portal > (click yours) > Edit > Redirect URL

 

iap_redirect_url.png

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