Controllerless Networks

last person joined: yesterday 

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

IAP external captive portal HTML code?

This thread has been viewed 16 times
  • 1.  IAP external captive portal HTML code?

    Posted Oct 29, 2013 06:05 AM

    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



  • 2.  RE: IAP external captive portal HTML code?
    Best Answer

    EMPLOYEE
    Posted Oct 29, 2013 06:20 AM

    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>

     



  • 3.  RE: IAP external captive portal HTML code?
    Best Answer

    Posted Oct 29, 2013 07:50 AM

    Thank you!



  • 4.  RE: IAP external captive portal HTML code?

    Posted Oct 22, 2014 04:42 AM

    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!



  • 5.  RE: IAP external captive portal HTML code?

    Posted Nov 04, 2015 04:05 PM

    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?



  • 6.  RE: IAP external captive portal HTML code?

    Posted Nov 04, 2015 04:12 PM

    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">


  • 7.  RE: IAP external captive portal HTML code?

    Posted Nov 05, 2015 09:02 AM

    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.



  • 8.  RE: IAP external captive portal HTML code?

    EMPLOYEE
    Posted Nov 05, 2015 09:08 AM
    Maybe it is cached in the user's browser?


  • 9.  RE: IAP external captive portal HTML code?

    Posted Nov 05, 2015 09:25 AM

    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.



  • 10.  RE: IAP external captive portal HTML code?

    Posted Nov 05, 2015 04:09 PM

    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



  • 11.  RE: IAP external captive portal HTML code?

    Posted Nov 06, 2015 07:58 AM

    That's blank...