1
0
mirror of https://github.com/Yubico/yubikey-val.git synced 2025-02-01 01:52:18 +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
2015-08-12 10:50:08 +02:00
2012-06-12 09:23:32 +02:00
2010-04-23 18:07:10 +00:00
2014-09-24 17:59:31 +02:00
2015-07-20 20:01:16 +00:00
2015-10-05 09:16:54 +02:00
2015-10-05 09:16:54 +02:00
2014-10-29 14:17:50 +01:00
2014-10-29 14:18:58 +01:00
2015-09-08 10:57:26 +02:00
2015-09-10 20:02:07 +02:00
2015-07-20 20:01:16 +00:00
2015-08-18 12:04:30 +02:00
2015-07-20 20:01:16 +00:00
2015-09-08 10:57:26 +02:00
2015-09-08 10:57:26 +02:00
2015-07-20 20:01:16 +00:00
2015-07-20 20:01:16 +00:00
2015-09-08 10:57:26 +02:00
2015-07-20 20:01:16 +00:00
2015-09-08 10:57:26 +02:00
2015-09-08 10:57:26 +02:00
2015-07-20 20:01:16 +00:00
2015-07-20 20:01:16 +00:00
2015-09-10 20:37:24 +02:00
2015-09-09 09:55:21 +02:00
2015-07-20 20:01:16 +00:00
2015-09-08 10:57:26 +02:00
2015-07-20 20:01:16 +00:00
2015-07-20 20:01:16 +00:00
2015-07-20 20:01:16 +00:00
2015-09-10 20:58:04 +02:00
2015-07-20 20:01:16 +00:00
2015-07-20 20:01:16 +00:00
2015-09-15 19:54:23 +00:00

== YubiKey OTP Validation Server ==

The YubiKey Validation Server (YK-VAL) is a server that validates
Yubikey One-Time Passwords (OTPs).  YK-VAL is written in PHP, for use
behind web servers such as Apache.

General
-------

The server implements the Yubico API protocol as defined in
doc/ValidationProtocol* and further documentation is also available in
the doc/ subdirectory.

This server talks to a KSM service for decrypting the OTPs, to avoid
storing any AES keys on the validation server.  One implementation of
this service is the https://developers.yubico.com/yubikey-ksm[YubiKey-KSM],
and another implementation using the YubiHSM hardware is
https://developers.yubico.com/python-pyhsm[PyHSM].

Note that version 1.x is a minimal centralized server. Version 2.x is
a replicated system that uses multiple machines.

License
-------

The project is licensed under a BSD license.  See the file COPYING for
exact wording.  For any copyright year range specified as YYYY-ZZZZ in
this package note that the range specifies every single year in that
closed interval.
Description
YubiKey OTP validation server in PHP
Readme 1.1 MiB
Languages
PHP 78.8%
Roff 12.6%
Makefile 4.2%
Perl 3.1%
Shell 1.3%