1
0
mirror of https://github.com/Yubico/yubikey-val.git synced 2025-02-08 03:54:20 +01:00

13 Commits

Author SHA1 Message Date
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
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
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
Paul Menzel
249ae16094 doc/Installation: Update Ubuntu recommendation to 14.04 LTS
Ubuntu 12.04 LTS will be supported until April 2017, but Ubuntu 14.04
LTS has been around long enough, so it’s well tested and probably more
common to install than 12.04 LTS. It’s supported until April 2019 [1].

[1] https://wiki.ubuntu.com/Releases
2015-12-23 15:54:02 +01:00
Paul Menzel
6a3c57992d doc/Installation: Fix wording to *The following steps apply …* 2015-12-23 15:39:45 +01:00
Paul Menzel
ea0c0d4d9b doc/Installation: Remove trailing whitespace
Run the command `StripWhitespace` from Vim Better Whitespace Plugin [1].

[1] https://github.com/ntpeters/vim-better-whitespace
2015-12-21 18:35:09 +01:00
Jan Schaumann
934a2333aa use https URL to allow anonymous cloning 2015-05-19 14:22:13 -04:00
Henrik Stråth
90b876a405 Added .conf extension to Apache config files.
Required in Apache 2.4. Supported in Apache 2.2.
2015-02-24 16:57:14 +01:00
Henrik Stråth
3f8aacde98 Update Installation.adoc 2014-11-26 15:48:35 +01:00
Dain Nilsson
194628d8fd Fix __VARIABLE_NAMES__. 2014-10-29 15:54:07 +01:00
Dain Nilsson
823f4d6159 Improved asciidoc formatting 2014-10-29 15:25:37 +01:00
Klas Lindfors
71506a79ba fixup formatting 2014-08-14 13:59:36 +02:00
Henrik Stråth
7dc8fdc9f7 removed submodule 2014-08-11 15:52:11 +02:00