After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 702474 - Odd password advice when entering a sequence of numbers
Odd password advice when entering a sequence of numbers
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: User Accounts
git master
Other Linux
: Normal normal
: ---
Assigned To: Ondrej Holy
Control-Center Maintainers
Depends on: 705136
Blocks:
 
 
Reported: 2013-06-17 15:18 UTC by Allan Day
Modified: 2013-07-30 14:01 UTC
See Also:
GNOME target: ---
GNOME version: 3.7/3.8


Attachments
change password hint (1.07 KB, patch)
2013-06-18 13:27 UTC, Ondrej Holy
committed Details | Review
enable sequence checking (975 bytes, patch)
2013-06-18 13:29 UTC, Ondrej Holy
accepted-commit_now Details | Review
bump libpwquality dependency (718 bytes, patch)
2013-07-30 12:09 UTC, Ondrej Holy
accepted-commit_now Details | Review
enable sequence checking (1.46 KB, patch)
2013-07-30 12:39 UTC, Ondrej Holy
committed Details | Review

Description Allan Day 2013-06-17 15:18:13 UTC
When entering a sequence of numbers (123456) the password hint field initially reads "Try to add more characters". As you enter more numbers, it changes to "Try to avoid common words".

It would be better if we could say "Try to avoid sequences of numbers" even when the number of characters is low.

While numbers are technically characters, I think that most people think of numbers as numbers and characters as letters.
Comment 1 Ondrej Holy 2013-06-18 12:24:44 UTC
(In reply to comment #0)
> When entering a sequence of numbers (123456) the password hint field initially
> reads "Try to add more characters". As you enter more numbers, it changes to
> "Try to avoid common words".
> 
> It would be better if we could say "Try to avoid sequences of numbers" even
> when the number of characters is low.

That's a problem of libpwquality library which returns errors in its order and I can't simple write "Try to avoid sequences of numbers" from low count of characters, because the check for number of characters is earlier.  

However it is weird, why the library doesn't return PWQ_ERROR_MAX_SEQUENCE ("Try to avoid sequences like 1234 or abcd") instead of PWQ_ERROR_CRACKLIB_CHECK ("Try to avoid common words"). I'll check it...

> While numbers are technically characters, I think that most people think of
> numbers as numbers and characters as letters.

So what about changing "Try to add more characters" to something like "Try to add more letters, numbers and symbols"?
Comment 2 Allan Day 2013-06-18 12:47:34 UTC
(In reply to comment #1)
> (In reply to comment #0)
> > When entering a sequence of numbers (123456) the password hint field initially
> > reads "Try to add more characters". As you enter more numbers, it changes to
> > "Try to avoid common words".
> > 
> > It would be better if we could say "Try to avoid sequences of numbers" even
> > when the number of characters is low.
> 
> That's a problem of libpwquality library which returns errors in its order and
> I can't simple write "Try to avoid sequences of numbers" from low count of
> characters, because the check for number of characters is earlier.  

Yeah. :(

...
> > While numbers are technically characters, I think that most people think of
> > numbers as numbers and characters as letters.
> 
> So what about changing "Try to add more characters" to something like "Try to
> add more letters, numbers and symbols"?

Sounds good!
Comment 3 Ondrej Holy 2013-06-18 13:12:20 UTC
A minimal length of sequence isn't set by default in the libpwquality, so sequence checking is disabled. So we can set the value e.g. to 4 and the appropriate error "Try to avoid sequences like 1234 or abcd" will be shown.

However I've found an error, which blocks setting the value currently, see https://bugzilla.redhat.com/show_bug.cgi?id=975429 .
Comment 4 Ondrej Holy 2013-06-18 13:27:30 UTC
Created attachment 247140 [details] [review]
change password hint
Comment 5 Ondrej Holy 2013-06-18 13:29:35 UTC
Created attachment 247141 [details] [review]
enable sequence checking

I've found different way, how to set the PWQ_ERROR_MAX_SEQUENCE value to enable checking for character sequences...
Comment 6 Ondrej Holy 2013-06-18 14:01:19 UTC
(In reply to comment #5)
> Created an attachment (id=247141) [details] [review]
> enable sequence checking
> 
> I've found different way, how to set the PWQ_ERROR_MAX_SEQUENCE value to enable
> checking for character sequences...

Nope, this is using also buggy pwquality_set_int_value, so the bug in libpwquality have to be fixed before...
Comment 7 Ondrej Holy 2013-07-23 07:56:28 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > Created an attachment (id=247141) [details] [review] [details] [review]
> > enable sequence checking
> > 
> > I've found different way, how to set the PWQ_ERROR_MAX_SEQUENCE value to enable
> > checking for character sequences...
> 
> Nope, this is using also buggy pwquality_set_int_value, so the bug in
> libpwquality have to be fixed before...

The bug in libpwquality has been fixed https://bugzilla.redhat.com/show_bug.cgi?id=975429 , so the patch should work now...
Comment 8 Bastien Nocera 2013-07-25 09:07:38 UTC
Review of attachment 247141 [details] [review]:

That looks good, but you should bump the libpwquality requirements as well, if this is a recent bug fix.
Comment 9 Ondrej Holy 2013-07-30 12:09:19 UTC
Created attachment 250460 [details] [review]
bump libpwquality dependency
Comment 10 Bastien Nocera 2013-07-30 12:23:12 UTC
Review of attachment 250460 [details] [review]:

Yes. You could have merged that in the original patch as well.
Comment 11 Ondrej Holy 2013-07-30 12:39:11 UTC
Created attachment 250462 [details] [review]
enable sequence checking

Set PWQ_ERROR_MAX_SEQUENCE using pwquality_set_int_value, because pwquality_set_option doesn't work for numbers...

It is also merged with version bump patch.
Comment 12 Bastien Nocera 2013-07-30 12:46:35 UTC
Review of attachment 250462 [details] [review]:

Yep.
Comment 13 Bastien Nocera 2013-07-30 13:29:33 UTC
Review of attachment 247140 [details] [review]:

Looks good.