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

    Adding Field to Captive Portal

    Scheduled Pinned Locked Moved Captive Portal
    4 Posts 2 Posters 2.5k 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.
    • J
      jjfunaz
      last edited by

      We currently have PFsense setup and working well with a captive portal. We authenticate users to our IAS server with no problems. THe issue has come up though that we need to authenticate users outside of our local domain. In order for our IAS server to sucessfully identify the requsts for the external domain, we need the captive portal to send more information then just username and password.

      Is it possible to add another field to the captive portal form like domain? or to have a drop down box added to the form and combine the value of the drop down box with the username before its submitted?

      Any help would be appriciated.

      1 Reply Last reply Reply Quote 0
      • O
        OldNick
        last edited by

        JJ

        Could you just not add the text box and some client side java called form the onsubmit event of the form which appends the domain to the username?

        Something like this for the form

        <form method="post"  ="" name="GuestAccess" onsubmit="return DomainAppend(this)">

        Then something like this for the java script function

        </form>

        1 Reply Last reply Reply Quote 0
        • J
          jjfunaz
          last edited by

          Thats exactly what what I did. I added a drop down field with javascript functions to change the user's domain based on the drop down field. I then set up the Radius policy to match certain domains and forward it accourding. All is working now.

          1 Reply Last reply Reply Quote 0
          • O
            OldNick
            last edited by

            JJ,

            excellent, glad you got it working

            Regards

            Nick

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.