Better character classes and wording
Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
This commit is contained in:

committed by
Love Hornquist Astrand

parent
5479ac2192
commit
8546c0c7b8
@@ -91,7 +91,7 @@ char_class_passwd_quality (krb5_context context,
|
|||||||
"ABCDEFGHIJKLMNOPQRSTUVWXYZ",
|
"ABCDEFGHIJKLMNOPQRSTUVWXYZ",
|
||||||
"abcdefghijklmnopqrstuvwxyz",
|
"abcdefghijklmnopqrstuvwxyz",
|
||||||
"1234567890",
|
"1234567890",
|
||||||
"!@#$%^&*()/?<>,.{[]}\\|'~`\" "
|
" !\"#$%&'()*+,-./:;<=>?@\\]^_`{|}~"
|
||||||
};
|
};
|
||||||
int counter = 0, req_classes;
|
int counter = 0, req_classes;
|
||||||
size_t i, len;
|
size_t i, len;
|
||||||
@@ -120,11 +120,12 @@ char_class_passwd_quality (krb5_context context,
|
|||||||
if (counter < req_classes) {
|
if (counter < req_classes) {
|
||||||
snprintf(message, length,
|
snprintf(message, length,
|
||||||
"Password doesn't meet complexity requirement.\n"
|
"Password doesn't meet complexity requirement.\n"
|
||||||
"Add more characters from the following classes:\n"
|
"Add more characters from at least %d of the\n"
|
||||||
|
"following classes:\n"
|
||||||
"1. English uppercase characters (A through Z)\n"
|
"1. English uppercase characters (A through Z)\n"
|
||||||
"2. English lowercase characters (a through z)\n"
|
"2. English lowercase characters (a through z)\n"
|
||||||
"3. Base 10 digits (0 through 9)\n"
|
"3. Base 10 digits (0 through 9)\n"
|
||||||
"4. Nonalphanumeric characters (e.g., !, $, #, %%)");
|
"4. Nonalphanumeric characters (e.g., !, $, #, %%)", req_classes);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user