Voucher activation
-
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.
-
If you don't want vouchers, then delete the voucher rolls…
-
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).
-
…..
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.