Bug 1537240

Summary: Add more options to pwquality.conf via rebase to 1.4.4
Product: Red Hat Enterprise Linux 8 Reporter: ralford
Component: libpwqualityAssignee: Nobody <nobody>
Status: CLOSED ERRATA QA Contact: Ivan Nikolchev <inikolch>
Severity: medium Docs Contact: Khushbu Borole <kborole>
Priority: high    
Version: 8.0CC: awestbro, inikolch, jafiala, kborole, lmanasko, mjahoda, pkis
Target Milestone: rcKeywords: FutureFeature, Rebase, Triaged
Target Release: 8.4Flags: kborole: needinfo-
pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: libpwquality-1.4.4-1.el8 Doc Type: Enhancement
Doc Text:
.`libpwquality` rebased to 1.4.4 The `libpwquality` package has been rebased to version 1.4.4. This release includes multiple bug fixes and translation updates. Most notably, the following setting options have been added to the `pwquality.conf` file: * `retry` * `enforce_for_root` * `local_users_only`
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-05-18 14:49:43 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:
Bug Depends On:    
Bug Blocks: 1894575    

Description ralford 2018-01-22 18:09:45 UTC
Description of problem:
Currently, retry, enforce_for_root, and local_users_only have to be configured manually in system-auth, password-auth, etc. We are noticing that customers are requiring to add or modify these options in multiple, differing pam files to meet compliance requirements. Also, the scap-security-guide project will most likely have to handle these scenarios in future as it already has to modify the pam files for the retry option. It would be really nice to only have to configure it in /etc/security/pwquality.conf rather than modifying the pam files themselves. This would make authconfig, future authselect, and scap-security-guide less complicated as modifying the pam files, providing profiles, or handling different pam configurations would no longer be required for these options. 

Version-Release number of selected component (if applicable):
pam-1.1.8-18.el7.x86_64

How reproducible:
always

Steps to Reproduce:
1. Try to modify these options in /etc/security/pwquality.conf
2.
3.

Actual results:
Any modifications to retry, enforce_for_root, and local_users_only have to be configured manually in system-auth, password-auth, etc.

Expected results:
retry = <some_number> can be configured in /etc/security/pwquality.conf
enforce_for_root = (0|1) can be configured in /etc/security/pwquality.conf
local_users_only = (0|1) can be configured in /etc/security/pwquality.conf

Additional info:
If this can also be added upstream, that would be great.

Comment 2 Simo Sorce 2019-02-11 15:39:24 UTC
This issue was not selected to be included either in Red Hat Enterprise Linux 7.7 because it is seen either as low or moderate impact to a small amount of use-cases. The next release will be in Maintenance Support 1 Phase, which means that qualified Critical and Important Security errata advisories (RHSAs) and Urgent Priority Bug Fix errata advisories (RHBAs) may be released as they become available. We will now close this issue, but if you believe that it qualifies for the Maintenance Support 1 Phase, please re-open; otherwise we recommend moving the request to Red Hat Enterprise Linux 8 if applicable.

Comment 4 Tomas Mraz 2020-04-01 08:45:25 UTC
This should be handled via rebase to upstream version 1.4.2 which has this feature implemented.

The upstream changes:

Release 1.4.2
* Fix regression in handling retry, enforce_for_root, and
  local_users_only options introduced with the previous
  release.

Release 1.4.1
* pam_pwquality: Abort the retry loop if user requests it.
* Allow setting retry, enforce_for_root, and local_users_only options
  in the pwquality.conf config file.
* Fix uninitialized memory in word distance calculations.
* Fix possible one byte buffer underflow when parsing the config file.
* Return default cracklib dictionary path if not overriden.
* Update translations from Zanata.

Comment 29 errata-xmlrpc 2021-05-18 14:49:43 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (libpwquality bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:1605