Project

General

Profile

Bug #8807

HA sync : files voucher_{$cpzone}.cfg and voucher_{$cpzone}.public are not created on save in /var/save when enabling vouchers on master.

Added by A FL almost 2 years ago. Updated about 1 month ago.

Status:
Feedback
Priority:
Normal
Category:
Captive Portal
Target version:
Start date:
08/19/2018
Due date:
% Done:

100%

Estimated time:
Affected Version:
All
Affected Architecture:
All

Description

When HA and vouchers are enabled, vouchers can't be used on the slave because the files used by /usr/local/bin/voucher are not created (despite public and private keys being trnsfered to the slave)

This has strong "side effects" on the slave :

  • When retriving a voucher roll, the generated CSV is empty on slave.
  • Also, testing a voucher from the "Status->CaptivePortal" page give "invalid magic !"
  • When vouchers do expire, slave does not consider the expiry
  • Users are not able to login from the slave.

Clicking on "save" on the slave voucher page solve this issue, but I think it would be better to automatically generate these two files on the slave when captiveportal sync is ensabled in System-> High Avaliablity settings

Associated revisions

Revision c392f1f5 (diff)
Added by A FL about 2 months ago

Write vouchers public key and config in /var/db/ on backup node
Fix #8807

History

#1 Updated by A FL almost 2 years ago

Ooops

I meant these two files are not created on *salve in */var/etc

and also despite public and private keys being *transfered to the slave

Sorry for the mistake

Pull request : https://github.com/pfsense/pfsense/pull/4150

#2 Updated by Jim Pingle 6 months ago

  • Status changed from New to Pull Request Review

#3 Updated by Renato Botelho about 1 month ago

  • Status changed from Pull Request Review to Feedback
  • Assignee set to Renato Botelho
  • Target version set to 2.5.0
  • % Done changed from 0 to 100

PR has been merged. Thanks!

Also available in: Atom PDF