Koha-clms/installer/data/mysql
Jonathan Druart 558a809144 Bug 18298: Enforce password complexity
This patchset prevents users to enter too leak password, controlled by
a new syspref RequireStrongPassword. If set the staff and patrons will have
to enter a strong password.
The strongness cannot be modified, it has been arbitrarily set (by the
author of this enhancement) to at least 1 lowercase, 1 uppercase and 1
digit. This can be inforce by increasing the value of the existing
minPasswordLength pref.

I decided to turn this feature on, it cannot hurt! For existing installs
it will have to be turned on manually.

Writing these patches I found a lot of inconsistencies all around the
password checks and decided to refactor everything to make things
consistent and more robust.
Now the password validity is check at only one place (subroutine
covered by tests).

Test plan:
We have several places where a password can be change/created:
a. Editing a patron (members/memberentry.pl)
b. Changing the password of a patron (members/member-password.pl)
c. Changing your own password at the opac (opac/opac-passwd.pl).
OpacPasswordChange needs to be set
d. Reseting your own password at the opac
(opac/opac-password-recovery.pl). OpacResetPassword needs to be set,
see "Forgot your password?" link when you are not logged in
e. Self registration feature, PatronSelfRegistration needs to be set.

You will also need to add 'password' to PatronSelfRegistrationBorrowerMandatoryField.

Note that '****' is considered by Koha internally that the password is
not changed (existing behavior).

To fully test this patch you will need to test the different
combinations of RequireStrongPassword and minPasswordLength.

Signed-off-by: Marc Véron <veron@veron.ch>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2017-10-16 09:44:32 -03:00
..
atomicupdate Bug 18298: Enforce password complexity 2017-10-16 09:44:32 -03:00
de-DE Bug 19043: Z39.50 target clio-db.cc.columbia.edu:7090 is no longer publicly available 2017-10-09 16:11:23 -03:00
en Bug 19085: Remove empty files patron_attributes.* in installer 2017-10-11 13:05:39 -03:00
es-ES Bug 19043: Z39.50 target clio-db.cc.columbia.edu:7090 is no longer publicly available 2017-10-09 16:11:23 -03:00
fr-CA Bug 19043: Z39.50 target clio-db.cc.columbia.edu:7090 is no longer publicly available 2017-10-09 16:11:23 -03:00
fr-FR Bug 17960: Update installed files 2017-02-06 17:42:13 +00:00
it-IT Bug 8612: Update installer files for late_issues 2017-06-05 12:56:20 -03:00
mandatory Bug 17518: Displayed language name for Czech is wrong 2016-11-02 11:00:35 +00:00
nb-NO Bug 19013: (QA followup) Set guarantorid to NULL patron sample data 2017-08-08 09:21:22 -03:00
pl-PL Bug 19043: Z39.50 target clio-db.cc.columbia.edu:7090 is no longer publicly available 2017-10-09 16:11:23 -03:00
ru-RU Bug 17960: Update installed files 2017-02-06 17:42:13 +00:00
uk-UA Bug 18537 - Update Ukrainian installer sample files for 17.05 2017-08-30 14:59:02 -03:00
audio_alerts.sql Bug 11431: (QA followup) Make audio alerts sql top level 2015-11-04 12:33:53 -03:00
backfill_statistics.pl Bug 16011: $VERSION - Remove comments 2016-03-24 17:20:29 +00:00
fix_unclosed_nonaccruing_fines_bug17135.pl Bug 17135: [QA Follow-up] Changes as to reporting 2016-09-16 10:47:03 +00:00
kohastructure.sql Bug 19422: Missing DROP TABLES in kohastructure.sql 2017-10-13 13:58:00 -03:00
labels_upgrade.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
patroncards_upgrade.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
sysprefs.sql Bug 18298: Enforce password complexity 2017-10-16 09:44:32 -03:00
update22to30.pl
…
updatedatabase.pl Bug 19186: DBRev 17.06.00.015 2017-10-13 13:58:20 -03:00
userflags.sql Bug 12461 - Add patron clubs feature 2017-04-28 08:37:44 -04:00
userpermissions.sql Bug 12461 - Add patron clubs feature 2017-04-28 08:37:44 -04:00