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

    Voucher activation

    Scheduled Pinned Locked Moved Captive Portal
    4 Posts 3 Posters 1.2k 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.
    • R
      rossmat
      last edited by

      Hi,

      Once vouchers are enabled (vouchers tab), they can always be used for authentification - even if the authentification method is not "Local User Manager / Vouchers" (captive portal tab). If authentification method is RADIUS, vouchers are still accepted for example. Is it the intended behaviour or a missing configuration check?

      Thanks.

      1 Reply Last reply Reply Quote 0
      • D
        doktornotor Banned
        last edited by

        If you don't want vouchers, then delete the voucher rolls…

        1 Reply Last reply Reply Quote 0
        • R
          rossmat
          last edited by

          Yes, I see how the vouchers can be disabled. So they are independent of the authentification method settings? We can have local authentification + vouchers, RADIUS + vouchers.

          I develop a portal with pfSense and custom authentification methods.
          For pfSense vouchers, the current activation check is:

          isset($config['voucher'][$cpzone]['enable'])
          

          But it could be the next one:

          isset($config['voucher'][$cpzone]['enable']) && $config['captiveportal'][$cpzone]['auth_method'] == "local"
          

          Regarding the portal index.php code, it should be the first one. Regarding the authentification method setting in WebGui, it should be the second one (option "Local User Manager / Vouchers", local auth method).

          1 Reply Last reply Reply Quote 0
          • GertjanG
            Gertjan
            last edited by

            @rossmat:

            …..
            Regarding the portal index.php code, it should be the first one. Regarding the authentification method setting in WebGui, it should be the second one (option "Local User Manager / Vouchers", local auth method).

            I guess you're right.

            Keep in mind that it will be valid if you are using the default login page (which gives the user the possibility to enter a user+password, or voucher code).
            Adapt this login page (throw out the voucher-part) and voucher are useless even if they exists and activated: no one could enter a voucher code.

            No "help me" PM's please. Use the forum, the community will thank you.
            Edit : and where are the logs ??

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