Bug 980968

Summary: zero length username string is treated as valid
Product: [Fedora] Fedora Reporter: Ondrej Holy <oholy>
Component: libpwqualityAssignee: Tomas Mraz <tmraz>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: tmraz
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: libpwquality-1.2.2-2.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-08 14:48:59 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ondrej Holy 2013-07-03 17:00:45 UTC
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 .