1
0
mirror of https://github.com/Yubico/yubikey-val.git synced 2024-11-29 00:24:13 +01:00
yubikey-val/doc
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
..
legacy Improved asciidoc formatting 2014-10-29 15:25:37 +01:00
Client_Info_Format.adoc Improved asciidoc formatting 2014-10-29 15:25:37 +01:00
Generating_Clients.adoc Improved asciidoc formatting 2014-10-29 15:25:37 +01:00
Getting_Started_Writing_Clients.adoc Added link to upgrade.yubico.com 2015-02-11 09:39:01 +01:00
Import_Export_Data.adoc doc/Import_Export_Data: Correct typo in *information* 2016-02-04 23:29:27 +01:00
Installation.adoc doc/Installation: Grant insert and update rights to ykval_verifier 2016-02-08 12:26:27 +01:00
Make_Release.adoc Improved asciidoc formatting 2014-10-29 15:25:37 +01:00
Munin_Probes.adoc Improved asciidoc formatting 2014-10-29 15:25:37 +01:00
Revocation_Service.adoc Improved asciidoc formatting 2014-10-29 15:25:37 +01:00
Server_Replication_Protocol.adoc Improved asciidoc formatting 2014-10-29 15:25:37 +01:00
Sync_Monitor.adoc Improved asciidoc formatting 2014-10-29 15:25:37 +01:00
Troubleshooting.adoc Improved asciidoc formatting 2014-10-29 15:25:37 +01:00
Validation_Protocol_V2.0.adoc Improved asciidoc formatting 2014-10-29 15:25:37 +01:00
Validation_Server_Algorithm.adoc Improved asciidoc formatting 2014-10-29 15:25:37 +01:00
YubiKey_Info_Format.adoc Improved asciidoc formatting 2014-10-29 15:25:37 +01:00