From b0810b9b2555fcf4870420688da8878260c0261c Mon Sep 17 00:00:00 2001 From: Tomas Mraz Date: Thu, 16 Jul 2015 13:36:04 +0200 Subject: Change the default settings. difok = 1 *credits = 0 minlen = 8 --- src/pwqprivate.h | 16 ++++++++-------- src/pwquality.conf | 12 ++++++------ 2 files changed, 14 insertions(+), 14 deletions(-) (limited to 'src') diff --git a/src/pwqprivate.h b/src/pwqprivate.h index fa89baf..692fae6 100644 --- a/src/pwqprivate.h +++ b/src/pwqprivate.h @@ -1,8 +1,8 @@ /* * libpwquality internal header * - * Copyright (c) Red Hat, Inc, 2011 - * Copyright (c) Tomas Mraz , 2011 + * Copyright (c) Red Hat, Inc, 2011,2015 + * Copyright (c) Tomas Mraz , 2011, 2015 * * See the end of the file for the License Information */ @@ -34,12 +34,12 @@ struct setting_mapping { int type; }; -#define PWQ_DEFAULT_DIFF_OK 5 -#define PWQ_DEFAULT_MIN_LENGTH 9 -#define PWQ_DEFAULT_DIG_CREDIT 1 -#define PWQ_DEFAULT_UP_CREDIT 1 -#define PWQ_DEFAULT_LOW_CREDIT 1 -#define PWQ_DEFAULT_OTH_CREDIT 1 +#define PWQ_DEFAULT_DIFF_OK 1 +#define PWQ_DEFAULT_MIN_LENGTH 8 +#define PWQ_DEFAULT_DIG_CREDIT 0 +#define PWQ_DEFAULT_UP_CREDIT 0 +#define PWQ_DEFAULT_LOW_CREDIT 0 +#define PWQ_DEFAULT_OTH_CREDIT 0 #define PWQ_TYPE_INT 1 #define PWQ_TYPE_STR 2 diff --git a/src/pwquality.conf b/src/pwquality.conf index cec450f..75e8db8 100644 --- a/src/pwquality.conf +++ b/src/pwquality.conf @@ -3,31 +3,31 @@ # # Number of characters in the new password that must not be present in the # old password. -# difok = 5 +# difok = 1 # # 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 = 9 +# 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 = 1 +# 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 = 1 +# 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 = 1 +# 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 = 1 +# ocredit = 0 # # The minimum number of required classes of characters for the new # password (digits, uppercase, lowercase, others). -- cgit v1.2.1