mirror of
https://github.com/Yubico/yubikey-val.git
synced 2025-01-19 16:52:15 +01:00
Simplify.
This commit is contained in:
parent
9a646efd5d
commit
3d9f507903
22
ykval-db.sql
22
ykval-db.sql
@ -1,7 +1,3 @@
|
||||
-- DROP DATABASE ykval;
|
||||
CREATE DATABASE ykval;
|
||||
USE ykval;
|
||||
|
||||
CREATE TABLE clients (
|
||||
id INT NOT NULL AUTO_INCREMENT,
|
||||
active BOOLEAN DEFAULT TRUE,
|
||||
@ -39,21 +35,3 @@ CREATE TABLE queue (
|
||||
info VARCHAR(256) NOT NULL,
|
||||
PRIMARY KEY (id)
|
||||
);
|
||||
|
||||
-- DROP USER 'ykval_verifier'@'localhost';
|
||||
CREATE USER 'ykval_verifier'@'localhost';
|
||||
GRANT SELECT,INSERT,UPDATE(accessed, counter, low, high, sessionUse, nonce)
|
||||
ON ykval.yubikeys to 'ykval_verifier'@'localhost';
|
||||
GRANT SELECT(id, secret, active)
|
||||
ON ykval.clients to 'ykval_verifier'@'localhost';
|
||||
GRANT SELECT,INSERT,UPDATE,DELETE
|
||||
ON ykval.queue to 'ykval_verifier'@'localhost';
|
||||
|
||||
-- DROP USER 'ykval_revoke'@'localhost';
|
||||
CREATE USER 'ykval_revoke'@'localhost';
|
||||
GRANT UPDATE(active)
|
||||
ON ykval.yubikeys to 'ykval_revoke'@'localhost';
|
||||
GRANT SELECT(publicName)
|
||||
ON ykval.yubikeys to 'ykval_revoke'@'localhost';
|
||||
|
||||
FLUSH PRIVILEGES;
|
||||
|
Loading…
x
Reference in New Issue
Block a user