1
0
mirror of https://github.com/Yubico/yubikey-val.git synced 2025-01-20 01:52:15 +01:00

Support multiple IP authorizations in ykval-revoke.php.

This commit is contained in:
Simon Josefsson 2011-05-09 14:31:10 +00:00
parent 966d2b57fe
commit 7d8df324bc
3 changed files with 7 additions and 3 deletions

View File

@ -1,4 +1,4 @@
VERSION = 2.8
VERSION = 2.9
PACKAGE = yubikey-val
CODE = COPYING Makefile NEWS ykval-checksum-clients.php \
ykval-common.php ykval-config.php ykval-db.php ykval-db.sql \

4
NEWS
View File

@ -1,3 +1,7 @@
* Version 2.9 released 2011-05-09
* Support multiple IP authorizations in ykval-revoke.php.
* Version 2.8 released 2011-01-06
* Support YubiKey OTPs filtered through a US Dvorak keyboard layout.

View File

@ -5,8 +5,8 @@ require_once 'ykval-db.php';
header("content-type: text/plain");
if ($baseParams['__YKR_IP__'] != $_SERVER["REMOTE_ADDR"]) {
logdie("ERROR Authorization failed");
if (!in_array ($_SERVER["REMOTE_ADDR"], $baseParams['__YKREV_IPS__'])) {
logdie("ERROR Authorization failed (logged ". $_SERVER["REMOTE_ADDR"] .")");
}
# Parse input