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
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
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
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
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
a41b7476ac
bump versions post release
2012-06-13 09:55:42 +02:00
Klas Lindfors
9dd6715cc5
fix version check for this NEWS format.
2012-06-13 09:39:44 +02:00
Klas Lindfors
80a2d3c805
NEWS for 2.16
2012-06-13 09:37:34 +02:00
Klas Lindfors
d2bceb62b1
if the sync request is empty, drop it as early as possible.
2012-06-13 09:32:38 +02:00
Fredrik Thulin
dfaa9a89aa
Use consistent camel-casing of function countersEqual().
...
Reduces confusion, even though PHP apparently has case insensitive
function names.
2012-06-12 17:56:01 +02:00
Fredrik Thulin
af292fbcd6
Spelling, and more informational logging.
2012-06-12 14:50:31 +02:00
Fredrik Thulin
57866dc829
More explanatory logging.
2012-06-12 14:21:56 +02:00
Fredrik Thulin
a2ffe0eeda
Merge branch 'master' of github.com:Yubico/yubikey-val-server-php
2012-06-12 14:21:20 +02:00
Klas Lindfors
a648a3f66e
add import/export clients scripts to Makefile
2012-06-12 13:45:40 +02:00
Klas Lindfors
a16cbf58c8
ignore release artifacts
2012-06-12 09:23:32 +02:00
Klas Lindfors
060b35453d
Merge branch 'master' of github.com:Yubico/yubikey-val-server-php
...
Conflicts:
ykval-synclib.php
2012-06-11 12:54:55 +02:00
Klas Lindfors
4337fd13df
fixup release target
...
take USER and KEYID as arguments and check that we have edited NEWS
2012-06-11 12:50:57 +02:00
Klas Lindfors
b754c24d29
use one curl-handle per server
...
does connection re-use while syncing to that server
2012-06-11 12:41:50 +02:00
Fredrik Thulin
22841cce43
Slightly less verbose log for remote IP check.
2012-05-29 15:36:02 +02:00
Fredrik Thulin
9d93e28739
Improve logging of refused sync requests.
2012-05-29 11:11:56 +02:00
Fredrik Thulin
b5976ad3c9
delete-trailing-whitespace
2012-05-29 11:07:19 +02:00
Fredrik Thulin
4b50b225c9
Merge branch 'master' of github.com:Yubico/yubikey-val-server-php
2012-05-25 10:59:43 +02:00
Fredrik Thulin
6b1e08eca8
Fix db-config init.
...
Re-order includes to get database settings set up correctly when
using Debian/Ubuntu package.
2012-05-25 10:58:52 +02:00
Klas Lindfors
fae1aa4021
bump versions
2012-05-24 14:43:25 +02:00
Klas Lindfors
cc687f23b9
NEWS for 2.15
2012-05-24 14:40:17 +02:00
Klas Lindfors
6a94b396dc
check if $sl or $timeout is empty, if they are insert default
2012-05-24 14:37:01 +02:00
Klas Lindfors
027dc9ff6c
use fgetcsv instead of fscanf, handles empty fields
2012-05-23 08:56:48 +02:00
Klas Lindfors
020d8dd3dc
add scripts for exporting and importing the clients
2012-05-23 08:56:15 +02:00
Klas Lindfors
36b3050d6f
Bump version
2012-05-22 14:21:04 +02:00
Klas Lindfors
c936ec5d36
News for 2.14
2012-05-22 14:19:20 +02:00
Klas Lindfors
44ad4ff5e1
Merge branch 'master' of github.com:Yubico/yubikey-val-server-php
2012-05-22 13:16:41 +02:00
Klas Lindfors
3de7ca3c8b
Add code to let the db reconnect after errors.
...
Set PDO error mode to throw exceptions so we can catch them and do things.
2012-05-22 13:15:25 +02:00
Fredrik Thulin
2c9b57a0a0
Detect timeouts and errors in curl (such as resolver failures).
2012-05-22 12:15:31 +02:00
Simon Josefsson
3954527d61
Silence PHP warning.
2012-05-22 10:16:18 +02:00
Simon Josefsson
f2b05822ef
Silence PHP warnings.
2012-05-21 09:12:33 +02:00