Koha/debian/scripts
Jonathan Druart 026c7588d9 Bug 25622: Use special chars in DB password (koha-create)
On bug 23250 we decided to generate a password without special chars
then add a '@' at the end to comply with MySQL policy.
That is wrong, we should handle correctly the special chars we don't
want to be part of the password.

Test plan:
1.
mysqlpwd=$(pwgen -s -y -r ":'&\\<>/" 16 1)
echo $mysqlpwd

Confirm that you don't see one of the following chars : ' & \ < > /

2.
Copy from src and edit /usr/sbin/koha-create to add an echo $mysqlpwd
Create several instances, like:
koha-create --create-db x
koha-create --create-db xx
koha-create --create-db xxx
...

When you see a password with a special chars, do:
koha-shell xxx
grep '<pass>' $KOHA_CONF
And make sure the password does not contain "__DB_PASS__"

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit ffd3b4b7e3)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2022-08-09 22:05:25 +00:00
..
koha-create Bug 25622: Use special chars in DB password (koha-create) 2022-08-09 22:05:25 +00:00
koha-create-dirs
koha-disable
koha-dump Bug 30511: Don't lock up entire database while running koha-dump 2022-05-10 23:09:09 -10:00
koha-dump-defaults
koha-elasticsearch
koha-email-disable
koha-email-enable
koha-enable
koha-foreach
koha-functions.sh Bug 27783: Add queue handling in packaging tools 2022-04-13 15:55:40 +02:00
koha-indexer
koha-list
koha-mysql
koha-mysqlcheck
koha-passwd
koha-plack
koha-rebuild-zebra
koha-remove
koha-reset-passwd
koha-restore Bug 10517: (QA follow-up) No need to remove second true 2022-05-03 11:19:50 -10:00
koha-run-backups
koha-shell
koha-sip
koha-sitemap
koha-translate
koha-upgrade-schema
koha-upgrade-to-3.4
koha-worker Bug 27783: (follow-up) Rename options 2022-04-13 15:55:40 +02:00
koha-z3950-responder
koha-zebra