Main Koha release repository https://koha-community.org
Find a file
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
acqui Bug 23991: Move SearchSuggestion to Koha::Suggestions 2022-06-27 12:30:28 -03:00
admin Bug 30848: Add an ExpandCodedFields RecordProcessor filter 2022-07-01 09:15:46 -03:00
api Bug 21978: Add middle_name to api specification 2022-06-24 12:24:10 -03:00
authorities
basket
bin
C4 Bug 23991: (follow-up) Silence useless warnings 2022-06-27 13:23:06 -03:00
catalogue Bug 30327: Add options for sorting components 2022-06-25 15:25:18 -03:00
cataloguing Bug 29963: Do not prefill empty date fields with today's date 2022-06-17 10:35:35 -03:00
circ Bug 29129: Update DisplayClearScreenButton to allow for a choice between issueslip and issueqslip 2022-06-25 10:56:50 -03:00
clubs
course_reserves
debian Bug 25622: Use special chars in DB password (koha-create) 2022-07-05 08:41:55 -03:00
docs
errors
etc
ill
installer Bug 30823: DBRev 22.06.00.010 2022-07-01 16:13:52 -03:00
Koha Bug 30152: Elasticsearch - queries with OR don't work with limits 2022-07-01 16:55:09 -03:00
koha-tmpl Bug 30430: (QA follow-up) Several fixes 2022-07-01 16:51:43 -03:00
labels
lib/CGI/Session/Serialize
members Bug 23991: Move SearchSuggestion to Koha::Suggestions 2022-06-27 12:30:28 -03:00
misc Bug 30889: (follow-up) Record and use context in background_jobs 2022-06-30 12:03:18 -03:00
offline_circ
opac Bug 30918: Allow passing filtered record to get_marc_notes 2022-07-01 09:17:20 -03:00
patron_lists
patroncards
plugins
pos
recalls
reports
reserve Bug 30960: Fix JS error message when no pick-up location is selected when placing a hold 2022-06-20 10:44:04 -03:00
reviews
rotating_collections
serials
services
skel
suggestion Bug 23991: Move SearchSuggestion to Koha::Suggestions 2022-06-27 12:30:28 -03:00
svc Bug 30971: (follow-up) Fix one more occurence 2022-06-16 09:40:57 -03:00
t Bug 30152: Elasticsearch - queries with OR don't work with limits 2022-07-01 16:55:09 -03:00
tags
tmp/modified_authorities
tools Bug 22659: (follow-up) Add category to redirect 2022-06-25 10:52:35 -03:00
virtualshelves
xt
.editorconfig
.eslintrc.json
.gitignore
.htaccess
.mailmap
.perlcriticrc
.proverc.dist
.scss-lint.yml
about.pl
app.psgi
changelanguage.pl
cpanfile Bug 25669: (follow-up) Minor fixes 2022-06-23 11:30:44 -03:00
fix-perl-path.PL
gulpfile.js
help.pl
INSTALL
Koha.pm Bug 30823: DBRev 22.06.00.010 2022-07-01 16:13:52 -03:00
koha_perl_deps.pl
kohaversion.pl
LICENSE
mainpage.pl
Makefile.PL
MANIFEST.SKIP
package.json
README
README.md
README.robots
rewrite-config.PL
yarn.lock

Koha is a free software integrated library system (ILS).

Koha is distributed under the GNU GPL version 3 or later.

Note: Koha does not accept pull requests from git hosting sites.

Note: This project has its own bug tracker, to report a bug or submit a patch visit http://bugs.koha-community.org.

For guidelines on submitting patches for Koha please visit https://wiki.koha-community.org/wiki/SubmitingAPatch

The developers handbook can be found at https://wiki.koha-community.org/wiki/Developer_handbook

http://koha-community.org/

Koha Logo