1
0
mirror of https://github.com/Yubico/yubikey-val.git synced 2025-02-12 15:54:27 +01:00

866 Commits

Author SHA1 Message Date
Jean Paul Galea
c8c7bd8359
Use https in documentation 2018-11-09 17:46:27 +01:00
Jean Paul Galea
23d825dbea
Drop documentation for legacy protocol. 2018-11-09 17:42:38 +01:00
Klas Lindfors
a850489d24
drop php 5.3 from travis 2017-12-14 12:58:48 +01:00
Klas Lindfors
62062a55db
drop unused variable from log
fixes #46
2017-08-04 13:16:28 +02:00
Thordur Bjornsson
fd7bc98dd4 Merge pull request #43 from Yubico/getting-started-doc
doc: Move the note on sending requests to multiple servers higher.
2016-12-09 16:24:54 +01:00
Thordur Bjornsson
6cc7839847
doc: Move the note on sending requests to multiple servers higher.
Requested by the solutions engineers, as this is pretty buried.

Instead of documented technical details, provide a link to the
yubico-c-client...
2016-12-09 15:48:21 +01:00
Jean Paul Galea
b8168539ba Bump versions. 2016-11-01 10:39:55 +01:00
Jean Paul Galea
bebdd42459 NEWS for 2.39 yubikey-val-2.39 2016-11-01 10:23:45 +01:00
Klas Lindfors
eae8b514aa add a note about client synchronization
fixes #42
2016-08-17 11:31:05 +02:00
Jean Paul Galea
fc0400730e Bump versions. 2016-06-08 14:08:12 +02:00
Jean Paul Galea
7ed3f12e01 NEWS for 2.38 yubikey-val-2.38 2016-06-08 13:56:53 +02:00
Jean Paul Galea
b01635bc45 Silence php notice.
- cast curl handle to integer prior to using it as an array key.
2016-06-08 13:51:12 +02:00
Jean Paul Galea
a5f0d9072f Bump versions. 2016-05-17 11:29:54 +02:00
Jean Paul Galea
14c2d2b979 NEWS for 2.37 yubikey-val-2.37 2016-05-17 11:20:35 +02:00
Jean Paul Galea
24fb8be4c5 Refactor. 2016-05-17 11:08:34 +02:00
Jean Paul Galea
c6cbf17d7b Refactor.
- unset temporary variable.
2016-05-17 11:05:47 +02:00
Jean Paul Galea
4c1b58986d Fix.
- $request was never set if both $_POST and $_GET are empty!
2016-05-17 10:57:12 +02:00
Jean Paul Galea
58213bfc8d Bump versions. 2016-05-16 15:46:31 +02:00
Jean Paul Galea
e78ec528a8 NEWS for 2.36 2016-05-16 15:36:42 +02:00
Klas Lindfors
958960a049 Merge pull request #39 from paulmenzel/grant-insert-and-update-rights-to-db-user-ykval_verifier
doc/Installation: Grant insert and update rights to `ykval_verifier`
yubikey-val-2.36
2016-05-09 08:12:35 +02:00
Klas Lindfors
53a5b0553d Merge branch 'sync-fixup' 2016-05-03 09:36:52 +02:00
Klas Lindfors
fc7d9fdc84 add php 7.0 for travis 2016-04-29 15:45:50 +02:00
Klas Lindfors
aaef07083a make getHttpVal() take the array to extract from
refactor so verify early finds out which of $_GET and $_POST to use and
then stick to using only that for the entire flow.

sync only works with GET anyways so use $_GET directly.
2016-04-29 15:42:37 +02:00
Klas Lindfors
131f1c5e11 use strtok() instead of explode() since we only care about first element 2016-04-29 09:48:59 +02:00
Klas Lindfors
ec3f7788a0 use different syntax to caputer first element of explode() call
apparently not supported in 5.3 to get first element directly
2016-04-29 09:21:27 +02:00
Klas Lindfors
9a5a24c45f rework re-sync to not use CURLOPT_PRIVATE
relates #41
2016-04-29 09:06:25 +02:00
Klas Lindfors
b47206fff9 bump version 2016-04-19 16:27:20 +02:00
Klas Lindfors
3216dbdc47 news for 2.35 yubikey-val-2.35 2016-04-19 16:25:31 +02:00
Klas Lindfors
925def6706 add ykval-log-verify.php to the install target 2016-04-19 16:24:25 +02:00
Jean Paul Galea
d077c93c30 Bump versions. 2016-04-19 09:12:59 +02:00
Jean Paul Galea
bc0a4ffffe NEWS for 2.34 yubikey-val-2.34 2016-04-18 19:04:40 +02:00
Jean Paul Galea
be784b8aaa Fix issue with $baseParam value.
- introduced recently in these log format changes.

- require_once 'ykval-config.php in logformat()
	did not import, because it takes place in ykval-verify.php.

- hence logformat() did not have $baseParams in scope,
	so we never write the log line.

- refactor and set format outside the class itself.
2016-04-18 16:38:39 +02:00
Jean Paul Galea
0838ecf56f Add sl and timeout to request log variables. 2016-04-18 16:33:00 +02:00
Jean Paul Galea
3edc7f077b Make it clear that default will be a string digit.
- since getHttpVal casts to string anyway.
2016-04-18 16:15:11 +02:00
Jean Paul Galea
714d6c9117 Avoid ambiguity with client id.
- getHttpVal always returns a string,
	so always treat $client as a string in other checks.
2016-04-18 16:10:42 +02:00
Jean Paul Galea
28c64e64fb Add tls and protocol variables to request log. 2016-04-18 15:40:04 +02:00
Jean Paul Galea
8a18cfea68 Rename variable. 2016-04-18 14:50:39 +02:00
Jean Paul Galea
922fe50163 Fix syntax errors introduced in previous commit. 2016-04-18 14:48:29 +02:00
Jean Paul Galea
c01c19c860 Add a verify request log line.
- Traditionally we wrote two lines for each ykval-verify.php call,
	'Request:' and 'Response:'.

- This commit allows us to log both request/response values in a single line.

- For backward compatibility, the old logging is kept in place.

- To write this line to syslog, __YKVAL_VERIFY_LOGFORMAT__ needs to be set.
2016-04-18 14:42:57 +02:00
Klas Lindfors
3a85744814 limit how many queued entries we get on each run
if there's more than 1000 queued we will get another 1000 on the next
run.
2016-03-14 14:52:15 +01:00
Klas Lindfors
ba0d6fc193 put building syncurl in a function 2016-03-08 09:33:53 +01:00
Klas Lindfors
2a0f74c78d implement paralell syncing with curl_multi 2016-03-08 09:33:53 +01:00
Paul Menzel
6c8377e35e doc/Installation: Grant insert and update rights to ykval_verifier
Currently, when following the installation instructions, the scripts
adding clients to the database don’t work as the user `ykval_verifier`
does not have any insert rights for the table `clients`.

```
LOG_DEBUG:ykval-gen-clients:db:DB query is:SELECT id FROM clients ORDER BY id DESC LIMIT 1
LOG_DEBUG:ykval-gen-clients:db:DB query is: INSERT INTO clients (id,active,created,secret,email,notes,otp) VALUES ('1', '1', '1404359826','XXXXXXXXXXXXXXXXXXXXXXXX =','','','')
LOG_INFO:ykval-gen-clients:db:Database query error: Array ( [0] => 42000 [1] => 1142 [2] => INSERT command denied to user 'ykval_verifier'@'localhost' for table 'clients' )
LOG_ERR:ykval-gen-clients:Failed to insert new client with query INSERT INTO clients (id,active,created,secret,email,notes,otp) VALUES ('1', '1', '1404359826’,’XXXXXXXXXXXXXXXXXXXXXXXX=','','','')
Failed to insert new client with query INSERT INTO clients (id,active,created,secret,email,notes,otp) VALUES ('1', '1', '1404359826','XXXXXXXXXXXXXXXXXXXXXXXX =','','','')`
```

Therefore, update the documentation, to also grant the user
`ykval_verifier` the rights to insert and update records into the table
`clients`. No delete rights are granted, because there is an `active`
column, which should probably used over deletion of clients.

Note, the original idea was probably to use two database users. One for
inserting and updating data, and one for querying/validating it. As,
nothing is written about this though, use the existing/recommended user
for both things.

Fixes: #20 (ykval_verifier SQL user doesn't have permission to INSERT
INTO clients, breaks ykval-gen-clients)
2016-02-08 12:26:27 +01:00
Klas Lindfors
a4f8c24877 Merge pull request #38 from paulmenzel/improve-documentation-for-import-export-data
Improve documentation for import export data
2016-02-05 13:00:17 +01:00
Paul Menzel
9edbf78e6a doc/Import_Export_Data: Correct typo in *information*
Add the missing *r* in *information*.
2016-02-04 23:29:27 +01:00
Paul Menzel
aa645ad52a doc/Import_Export_Data: Remove trailing whitespace
Run the command `StripWhitespace` from Vim Better Whitespace Plugin [1].

[1] https://github.com/ntpeters/vim-better-whitespace
2016-02-04 23:28:22 +01:00
Klas Lindfors
b3d8206da0 Merge pull request #37 from paulmenzel/add-install-command-for-non-deb-distributions
doc/Installation: Add install commands for non-Debian distributions
2016-01-07 15:28:54 +01:00
Paul Menzel
ab11b5ed91 doc/Installation: Add install commands for non-Debian distributions
Running `sudo make install` on non-Debian distributions fails, as the
group of the Apache HTTP server are named differently. Therefore, update
the documentation. The group name for SUSE is taken from the [OTRS
manual][1].

[1]: https://otrs.github.io/doc/manual/admin/4.0/de/html/manual-installation-of-otrs.html
2016-01-05 22:38:31 +01:00
Klas Lindfors
c688a9ecba Merge pull request #36 from paulmenzel/improve-installation-documentation
Improve installation documentation
2016-01-05 10:21:58 +01:00
Paul Menzel
26de7d6c66 doc/Installation: Mark up file names [1]
[1] http://asciidoctor.org/docs/asciidoc-syntax-quick-reference/#source-code
2015-12-23 16:12:28 +01:00