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

    $PORTAL_MESSAGE$ doesn't appear to be working

    Scheduled Pinned Locked Moved Captive Portal
    4 Posts 2 Posters 4.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.
    • O
      OldNick
      last edited by

      Hi,

      I’m currently trying to create a custom authentication error page.

      I have uploaded a modified error.html file which is basically just a refresh to a php page passing $PORTAL_MESSAGE$ as a parameter

      At the moment my php page, captiveportal-loginerror.php contains the following

      On the URL of the redirected page I see portal_redirurl parameter but there is nothing for the error parameter

      Do I have to enable something to be able to access this information?

      Regards

      Nick

      1 Reply Last reply Reply Quote 0
      • S
        Slam
        last edited by

        What authentication method are you using for the captive portal?

        afaik, $PORTAL_MESSAGE$ only works if authenticating against a radius server, not local authenticaton, but I havent tested this myself.

        Slam

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

          Slam,

          yes sorry should of mentioned that we are authenticating against freeradius.

          Regards

          Nick

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

            Hi,

            ive tinkered with this some more and it appears it does work after all though so far ive only managed to get back a message when the radius server was down.

            Are there any plans to extend the range of messages? It would be nice for instance to know why the login failed, ie bad credentials, expired account or to many simultaneous logins for exmple.

            Regards

            Nick

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