mirror of
https://github.com/Yubico/yubikey-val.git
synced 2024-11-29 00:24:13 +01:00
6c8377e35e
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) |
||
---|---|---|
.. | ||
legacy | ||
Client_Info_Format.adoc | ||
Generating_Clients.adoc | ||
Getting_Started_Writing_Clients.adoc | ||
Import_Export_Data.adoc | ||
Installation.adoc | ||
Make_Release.adoc | ||
Munin_Probes.adoc | ||
Revocation_Service.adoc | ||
Server_Replication_Protocol.adoc | ||
Sync_Monitor.adoc | ||
Troubleshooting.adoc | ||
Validation_Protocol_V2.0.adoc | ||
Validation_Server_Algorithm.adoc | ||
YubiKey_Info_Format.adoc |