libpwquality/modify-pwquality_conf.patch
2019-09-30 10:57:44 -04:00

41 lines
1.5 KiB
Diff

diff -Nupr libpwquality-1.2.3.orig/src/pwquality.conf libpwquality-1.2.3/src/pwquality.conf
--- libpwquality-1.2.3.orig/src/pwquality.conf 2015-08-18 10:29:38.000000000 +0800
+++ libpwquality-1.2.3/src/pwquality.conf 2015-08-18 10:30:57.000000000 +0800
@@ -8,30 +8,30 @@
# Minimum acceptable size for the new password (plus one if
# credits are not disabled which is the default). (See pam_cracklib manual.)
# Cannot be set to lower value than 6.
-# minlen = 8
+minlen = 8
#
# The maximum credit for having digits in the new password. If less than 0
# it is the minimum number of digits in the new password.
-# dcredit = 0
+dcredit = 0
#
# The maximum credit for having uppercase characters in the new password.
# If less than 0 it is the minimum number of uppercase characters in the new
# password.
-# ucredit = 0
+ucredit = 0
#
# The maximum credit for having lowercase characters in the new password.
# If less than 0 it is the minimum number of lowercase characters in the new
# password.
-# lcredit = 0
+lcredit = 0
#
# The maximum credit for having other characters in the new password.
# If less than 0 it is the minimum number of other characters in the new
# password.
-# ocredit = 0
+ocredit = 0
#
# The minimum number of required classes of characters for the new
# password (digits, uppercase, lowercase, others).
-# minclass = 0
+minclass = 3
#
# The maximum number of allowed consecutive same characters in the new password.
# The check is disabled if the value is 0.