summaryrefslogtreecommitdiffstats
path: root/etc/inc/voucher.inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-07-04 19:56:47 +0000
committerErmal <eri@pfsense.org>2011-07-04 19:56:47 +0000
commit1a863be22287ae3a0cbceb86263d68d1fbd732ff (patch)
tree7a8b281bd1d3706fc52ee59352d2f656a4ff7692 /etc/inc/voucher.inc
parentc3ebb669464b0d4223af37bbda4d486606c5e869 (diff)
downloadpfsense-1a863be22287ae3a0cbceb86263d68d1fbd732ff.zip
pfsense-1a863be22287ae3a0cbceb86263d68d1fbd732ff.tar.gz
If vouchers are disabled do not allow users to authenticate thorugh existing(active/in use) vouchers. Reported-by: http://forum.pfsense.org/index.php/topic,38342.0.html
Diffstat (limited to 'etc/inc/voucher.inc')
-rw-r--r--etc/inc/voucher.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/inc/voucher.inc b/etc/inc/voucher.inc
index be3e322..374ec70 100644
--- a/etc/inc/voucher.inc
+++ b/etc/inc/voucher.inc
@@ -301,6 +301,9 @@ function voucher_expire($voucher_received) {
function voucher_auth($voucher_received, $test = 0) {
global $g, $config;
+ if (!isset($config['voucher']['enable']))
+ return 0;
+
$voucherlck = lock('voucher', LOCK_EX);
// XMLRPC Call over to the master Voucher node
OpenPOWER on IntegriCloud