From 13e81ad1cf6d652946b78082b280fb12d190f6f2 Mon Sep 17 00:00:00 2001 From: Yuval Brik Date: Fri, 23 Jun 2017 10:32:16 +0300 Subject: [PATCH] Fedora mariadb: disable cracklib In Fedora mariadb, cracklib has been enabled [0] in order to verify the password strength. Disable cracklib in Fedora devstack in order to allow simple passwords in dev environments. [0] https://src.fedoraproject.org/cgit/rpms/mariadb.git/ commit: 9442da192282aa74f43e86c96202109a173bbaba Change-Id: I2d5e965f0f19f86992794eec78134e862899c931 --- lib/databases/mysql | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/databases/mysql b/lib/databases/mysql index 7bbcace399..a0cf7a4296 100644 --- a/lib/databases/mysql +++ b/lib/databases/mysql @@ -71,6 +71,10 @@ function configure_database_mysql { elif is_fedora; then mysql=mariadb my_conf=/etc/my.cnf + local cracklib_conf=/etc/my.cnf.d/cracklib_password_check.cnf + if [ -f "$cracklib_conf" ]; then + inicomment -sudo "$cracklib_conf" "mariadb" "plugin-load-add" + fi else exit_distro_not_supported "mysql configuration" fi