1
0
mirror of https://github.com/Yubico/yubikey-val.git synced 2024-11-29 09:24:12 +01:00
Commit Graph

716 Commits

Author SHA1 Message Date
Fredrik Thulin
d4cecdfaf4 Add __YKRESYNC_IPS__ to template. 2012-06-18 15:05:23 +02:00
Fredrik Thulin
e51efce079 init 2012-06-18 14:19:09 +02:00
Fredrik Thulin
2d193e29e1 init 2012-06-18 14:19:00 +02:00
Fredrik Thulin
54d7110036 Less verbose logging when verifying remote IP. 2012-06-18 12:42:39 +02:00
Klas Lindfors
77b9560710 with postgres the bool active is returned as a php bool
that's casted to a string gives 1 when true and empty string when false.. cast to an int to get 1 and 0.
2012-06-15 21:52:21 +02:00
Klas Lindfors
dfbe5a0ddf bump versions post-release 2012-06-15 15:01:52 +02:00
Klas Lindfors
670ae537aa Merge branch 'master' of github.com:Yubico/yubikey-val-server-php 2012-06-15 14:59:27 +02:00
Fredrik Thulin
38185be07d Fix errors with our new logging code :( 2012-06-15 11:59:42 +02:00
Fredrik Thulin
64e9671b49 Merge branch 'master' of github.com:Yubico/yubikey-val-server-php 2012-06-15 11:04:32 +02:00
Klas Lindfors
69ec7da176 bump versions post-release 2012-06-15 10:50:39 +02:00
Klas Lindfors
f72f00c338 rollback to 2.17 2012-06-15 10:46:34 +02:00
Klas Lindfors
3b7927ccb3 add munin pluin to MUNIN so it's included in tar 2012-06-15 10:39:48 +02:00
Klas Lindfors
ce830612de actually install the responses munin check 2012-06-15 10:31:56 +02:00
Klas Lindfors
accebd2a1a bump versions post-release 2012-06-15 10:24:52 +02:00
Klas Lindfors
fff8073ac0 NEWS for 2.17 2012-06-15 10:22:26 +02:00
Klas Lindfors
42e13cd43b simple munin plugin for response types 2012-06-15 10:15:51 +02:00
Klas Lindfors
0f0a23694a Merge branch 'master' of github.com:Yubico/yubikey-val-server-php 2012-06-14 16:44:54 +02:00
Klas Lindfors
9ac5741e6c only warn about replays if the delta is more than 1 (or less than -1) 2012-06-14 16:44:19 +02:00
Fredrik Thulin
1fd2e77da1 Make logdie() take logger as argument. 2012-06-14 16:16:29 +02:00
Fredrik Thulin
499377fd2f Change protocol version logging to 'debug'. 2012-06-14 15:54:51 +02:00
Fredrik Thulin
6c80f76102 Get rid of debug() - use log_format() for the formatting part. 2012-06-14 15:23:53 +02:00
Fredrik Thulin
b8d18af10c Remove now unused retrieveURLasync_old() 2012-06-14 15:22:38 +02:00
Fredrik Thulin
765620f17b Merge branch 'master' of github.com:Yubico/yubikey-val-server-php into devel/refactor_retrieveURLasync 2012-06-14 15:19:19 +02:00
Fredrik Thulin
c8e9eb828f Pass logger object to retrieveURLasync() 2012-06-14 15:19:04 +02:00
Klas Lindfors
6c9edb0db2 instead of passing context to sendResp, give it a logger. 2012-06-14 15:15:47 +02:00
Fredrik Thulin
60bfa8ff1a minor debug log fixes 2012-06-14 15:10:44 +02:00
Fredrik Thulin
46180c9de9 Merge branch 'master' of github.com:Yubico/yubikey-val-server-php into devel/refactor_retrieveURLasync 2012-06-14 15:00:47 +02:00
Klas Lindfors
01969a279e let sendResp take one more parameter $context
use for logging if it's a response to sync or verify.
2012-06-14 14:55:50 +02:00
Fredrik Thulin
32c94e9256 Use retrieveURLasync in ykval-common instead. 2012-06-14 14:55:07 +02:00
Fredrik Thulin
201416b15a retrieveURLasync: logging using ident string 2012-06-14 14:54:12 +02:00
Fredrik Thulin
41f1e15a43 retrieveURLasync: cater for the last need in ykval-synclib. 2012-06-14 14:49:37 +02:00
Fredrik Thulin
df71d3a5a8 retrieveURLasync: make timeout an argument 2012-06-14 14:34:07 +02:00
Fredrik Thulin
658ddef822 Move de-arraying out of retrieveURLasync. 2012-06-14 14:31:00 +02:00
Klas Lindfors
d37c41011a if the remote sync site says BAD_OTP log and remove from queue 2012-06-14 13:52:53 +02:00
Fredrik Thulin
0fe0be9980 Restore responding BAD_OTP if YubiKey is disabled.
It seems that we might get into problems if responding OK - the other
sync client validation server would think we approved of the OTP.
2012-06-14 13:30:04 +02:00
Klas Lindfors
cb6253637c Merge branch 'feature/oracle_support' of github.com:Yubico/yubikey-val-server-php into feature/oracle_support 2012-06-14 13:01:40 +02:00
Fredrik Thulin
b5849acef1 Merge branch 'master' of github.com:Yubico/yubikey-val-server-php 2012-06-14 13:01:10 +02:00
Fredrik Thulin
cb0de9d8e3 Add __YKREV_IPS__ to template. 2012-06-14 13:00:39 +02:00
Klas Lindfors
a739667891 lowercase columns from oracle, we use lower everywhere. 2012-06-14 13:00:13 +02:00
Fredrik Thulin
a852e860db Don't refuse sync for disabled YubiKeys.
It is better to consume any OTPs produced by a YubiKey, so if -
for some reason - another validation server has accepted an OTP
we'd better bump our counter values accordingly.
2012-06-14 12:56:05 +02:00
Fredrik Thulin
e5ea2ead5f Check for ^oci: instead of just ^oci. 2012-06-14 11:05:44 +02:00
Klas Lindfors
04ce8662de Merge branch 'feature/oracle_support' of github.com:Yubico/yubikey-val-server-php into feature/oracle_support 2012-06-13 14:47:18 +02:00
Klas Lindfors
6dd55013f9 do $res->rowCount() instead of count($res->fetchAll())
should never be called after select, and will throw exceptions if you do
2012-06-13 14:45:37 +02:00
Fredrik Thulin
605abc8cbf delete-trailing-whitespace 2012-06-13 13:41:12 +02:00
Klas Lindfors
9f74175853 40 char nonce for oracle as well 2012-06-13 13:29:40 +02:00
Fredrik Thulin
2a7a6e3503 Don't LOG_NOTICE when remote server has seen latest OTP too.
This is an expected condition for many (most) validation requests
using the asynchronous validation protocol 2.0.
2012-06-13 13:23:55 +02:00
Fredrik Thulin
afb42d7c0a Logging improvements. 2012-06-13 13:22:35 +02:00
Fredrik Thulin
283c34b0e4 Downgrade 'Sync request unnecessarily sent' to INFO.
Also add comment explaining that this is not an error (and why).
2012-06-13 10:10:04 +02:00
Klas Lindfors
40b5949f44 Merge branch 'master' into feature/oracle_support 2012-06-13 09:55:59 +02:00
Klas Lindfors
a41b7476ac bump versions post release 2012-06-13 09:55:42 +02:00