Bug 980968 - zero length username string is treated as valid
zero length username string is treated as valid
Product: Fedora
Classification: Fedora
Component: libpwquality (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Tomas Mraz
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2013-07-03 13:00 EDT by Ondrej Holy
Modified: 2013-07-08 10:48 EDT (History)
1 user (show)

See Also:
Fixed In Version: libpwquality-1.2.2-2.fc20
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2013-07-08 10:48:59 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Ondrej Holy 2013-07-03 13:00:45 EDT
Description of problem: Empty username is threated as valid when comparing the username with password to check that the password doesn't contain the username.

Actual results: The password_check function fails on empty username string with PWQ_ERROR_USER_CHECK.

Expected results: It should consider zero length strings as NULL and continue with other checks...

Additional info: Originaly filed at https://fedorahosted.org/libpwquality/ticket/1 .

Note You need to log in before you can comment on or make changes to this bug.