summaryrefslogtreecommitdiffstats
path: root/hammer.py
diff options
context:
space:
mode:
authorFrancis Dupont <fdupont@isc.org>2022-04-01 16:59:24 +0200
committerAndrei Pavel <andrei@isc.org>2022-04-02 10:08:28 +0200
commit3a8449789f7b3674330e1912abf029e771108c58 (patch)
tree1964f4393276b0dc22a7abde93d8a0726a4932dd /hammer.py
parent[#2353] hammer: add 'tls' feature to configure TLS in MySQL (diff)
downloadkea-3a8449789f7b3674330e1912abf029e771108c58.tar.xz
kea-3a8449789f7b3674330e1912abf029e771108c58.zip
[#2353] Proposed fixes for doc
Diffstat (limited to 'hammer.py')
-rwxr-xr-xhammer.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/hammer.py b/hammer.py
index b71d5d77aa..9c788671c7 100755
--- a/hammer.py
+++ b/hammer.py
@@ -1220,6 +1220,9 @@ ssl_key = {cert_dir}/kea-client.key
cmd += "GRANT ALL ON keatest.* TO 'keatest'@'localhost';\n"
cmd += "GRANT SELECT ON keatest.* TO 'keatest_readonly'@'localhost';\n"
if 'tls' in features:
+ # ALTER USER is the best place to put the REQUIRE but it is not
+ # supported by old versions so downgrade to GRANT.
+ # X509 is weak too but enough for testing purpose.
cmd += "GRANT ALL ON keatest.* TO 'keatest_secure'@'localhost' REQUIRE X509;\n"
cmd += "SET @@global.log_bin_trust_function_creators = 1;\n"
cmd += "EOF\n\""