• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Auto Posting of authentication form.

Scheduled Pinned Locked Moved Captive Portal
3 Posts 2 Posters 6.1k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C
    candengo
    last edited by Aug 8, 2007, 7:11 PM

    Is anyone using their own login system and callign then authentication form automatically to force login through captive portal?  Im trying to do this, works fine manually, but when i try and force the http post with etc then it doest work.

    Process is this:

    1. Plain HTML page on captive portal diverts to PHP page.
    2. PHP forces redirect to my central server login pages.
    3. Central server accepts PIN number and creates username / password combo.
    4. Central server diverts to Dologin.php (on the captive portal) to force the Radius authentication.

    As i say, the form on dologin.php is showing, with the correct values entered, and clicking submit button authenticates ok.  I just cant seem to force posting using an onload event.

    Code is attached below.  Any help much appreciated.

    
    <title>Submitting Login - please wait.</title> 
    
    <form id="dologin" name="dologin" method="post" action="<?php echo $_GET[" portal_action"];="" ?="">">
    
    ">
    ">
    
    </form>
    
    
    1 Reply Last reply Reply Quote 0
    • S
      sullrich
      last edited by Aug 9, 2007, 12:07 AM

      Try:

      1 Reply Last reply Reply Quote 0
      • C
        candengo
        last edited by Aug 9, 2007, 5:38 PM

        Worked a treat.  Just substituded the submit button for a hidden tag.

        Many thanks.

        Regards

        David

        1 Reply Last reply Reply Quote 0
        3 out of 3
        • First post
          3/3
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
          This community forum collects and processes your personal information.
          consent.not_received