mirror of
https://github.com/Yubico/yubikey-val.git
synced 2025-01-20 10:52:15 +01:00
Support multiple IP authorizations in ykval-revoke.php.
This commit is contained in:
parent
966d2b57fe
commit
7d8df324bc
2
Makefile
2
Makefile
@ -1,4 +1,4 @@
|
|||||||
VERSION = 2.8
|
VERSION = 2.9
|
||||||
PACKAGE = yubikey-val
|
PACKAGE = yubikey-val
|
||||||
CODE = COPYING Makefile NEWS ykval-checksum-clients.php \
|
CODE = COPYING Makefile NEWS ykval-checksum-clients.php \
|
||||||
ykval-common.php ykval-config.php ykval-db.php ykval-db.sql \
|
ykval-common.php ykval-config.php ykval-db.php ykval-db.sql \
|
||||||
|
4
NEWS
4
NEWS
@ -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
|
* Version 2.8 released 2011-01-06
|
||||||
|
|
||||||
* Support YubiKey OTPs filtered through a US Dvorak keyboard layout.
|
* Support YubiKey OTPs filtered through a US Dvorak keyboard layout.
|
||||||
|
@ -5,8 +5,8 @@ require_once 'ykval-db.php';
|
|||||||
|
|
||||||
header("content-type: text/plain");
|
header("content-type: text/plain");
|
||||||
|
|
||||||
if ($baseParams['__YKR_IP__'] != $_SERVER["REMOTE_ADDR"]) {
|
if (!in_array ($_SERVER["REMOTE_ADDR"], $baseParams['__YKREV_IPS__'])) {
|
||||||
logdie("ERROR Authorization failed");
|
logdie("ERROR Authorization failed (logged ". $_SERVER["REMOTE_ADDR"] .")");
|
||||||
}
|
}
|
||||||
|
|
||||||
# Parse input
|
# Parse input
|
||||||
|
Loading…
x
Reference in New Issue
Block a user