diff options
author | Tomas Mraz <tmraz@redhat.com> | 2015-07-16 13:36:04 +0200 |
---|---|---|
committer | Tomas Mraz <tmraz@redhat.com> | 2015-07-16 13:36:04 +0200 |
commit | b0810b9b2555fcf4870420688da8878260c0261c (patch) | |
tree | 84d3cf12451c84d76963f07f3df6ce762111e702 /src | |
parent | 3a1d0a80b71ac9e8babef7d992db3c8509d32889 (diff) | |
download | libpwquality-b0810b9b2555fcf4870420688da8878260c0261c.tar.gz |
Change the default settings.
difok = 1
*credits = 0
minlen = 8
Diffstat (limited to 'src')
-rw-r--r-- | src/pwqprivate.h | 16 | ||||
-rw-r--r-- | src/pwquality.conf | 12 |
2 files changed, 14 insertions, 14 deletions
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 <tm@t8m.info>, 2011 + * Copyright (c) Red Hat, Inc, 2011,2015 + * Copyright (c) Tomas Mraz <tm@t8m.info>, 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). |