Bug 1007893 - Add an option to pwquality to specify minimum number of character in each class.
Add an option to pwquality to specify minimum number of character in each class.
Status: NEW
Product: Fedora
Classification: Fedora
Component: libpwquality (Show other bugs)
rawhide
All Linux
medium Severity medium
: ---
: ---
Assigned To: Tomas Mraz
Fedora Extras Quality Assurance
: FutureFeature
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-09-13 10:05 EDT by Najmuddin Chirammal
Modified: 2014-06-18 03:09 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Najmuddin Chirammal 2013-09-13 10:05:49 EDT
Description of problem: 

Currently pam_cracklib/pam_pwquality does not have an option to specify the "minimum number of character in each class". We can specify the number of characters required for each class (by using -weight) however this is not sufficient in some situations, for example:

Requirement: 

Minimum length: 12
Minimum number of classes: 3
Minimum number of character in each class: 2

Cracklib/pwquality attempt is below:

password required pam_cracklib.so try_first_pass minclass=3 difok=4 retry=3 minlen=12 lcredit=-2 ucredit=-2 dcredit=-2 ocredit=-2

However, since -2 is specified for each class, pam is enforcing 4 classes. We cannot specify, the password only require 3 classes, but at least 2 characters for each class.

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