Koha-clms/debian/scripts
Jonathan Druart ffd3b4b7e3
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>
2022-07-05 08:41:55 -03:00
..
koha-create Bug 25622: Use special chars in DB password (koha-create) 2022-07-05 08:41:55 -03: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 Bug 27348: Fix test on ALTERNATE_INDEXER_DAEMON in koha-indexer 2021-06-21 12:07:28 +02:00
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 Bug 28519: Add lib to koha-shell 2021-06-17 15:59:40 +02:00
koha-sip
…
koha-sitemap
…
koha-translate Bug 18984: Remove NORMARC support 2021-10-07 15:36:40 +02:00
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
…