Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1174723 - values for pwdChecker are not set to default values
values for pwdChecker are not set to default values
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: openldap (Show other bugs)
7.1
Unspecified Unspecified
medium Severity medium
: rc
: ---
Assigned To: Matus Honek
Patrik Kis
: EasyFix, Patch
: 1196243 (view as bug list)
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2014-12-16 06:31 EST by David Spurek
Modified: 2015-11-19 03:52 EST (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: broken logic while handling default configuration values. Consequence: default values in pwdChecker were not set. Fix: underlying code has been fixed. Result: default values are now set correctly.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-11-19 03:52:44 EST
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)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:2131 normal SHIPPED_LIVE Moderate: openldap security, bug fix, and enhancement update 2015-11-19 04:10:21 EST

  None (edit)
Description David Spurek 2014-12-16 06:31:17 EST
Description of problem:
minPoints value in pwdChecker isn't set to default value.

Documentation says:
minPoints : integer. Default value: 3. Minimum number of quality points a new password must have to be accepted. One quality point is awarded for each character class used in the password.

My use case:
cat > /etc/openldap/check_password.conf <<EOF
minLower 3
EOF

Then 'ldappasswd -H ldap://my-domain.com -a PASSab -s BLABla -D uid=testuser3,dc=my-domain,dc=com -w PASSab -x uid=testuser3,dc=my-domain,dc=com' is allowed but it should fail. 

If I explicitly set 'minPoints 3' then ldappasswd fails:

[test]ldappasswd -H ldap://my-domain.com -a PASSab -s BLABla -D uid=testuser3,dc=my-domain,dc=com -w PASSab -x uid=testuser3,dc=my-domain,dc=com -e ppolicy
Result: Constraint violation (19)
control: 1.3.6.1.4.1.42.2.27.8.5.1 false MAOBAQU=
ppolicy: error=5 (Password fails quality checks)



Version-Release number of selected component (if applicable):
openldap-2.4.39-3.el7

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:
Comment 1 David Spurek 2014-12-16 07:30:28 EST
The same situation is for other keywords in /etc/openldap/check_password.conf. If keyword isn't found in a file then its value is set to '-1' instead of default value.
Comment 6 Matus Honek 2015-05-25 10:53:16 EDT
*** Bug 1196243 has been marked as a duplicate of this bug. ***
Comment 10 errata-xmlrpc 2015-11-19 03:52:44 EST
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, 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://rhn.redhat.com/errata/RHSA-2015-2131.html

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