RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1174723 - values for pwdChecker are not set to default values
Summary: values for pwdChecker are not set to default values
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: openldap
Version: 7.1
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Matus Honek
QA Contact: Patrik Kis
URL:
Whiteboard:
: 1196243 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-12-16 11:31 UTC by David Spurek
Modified: 2015-11-19 08:52 UTC (History)
4 users (show)

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.
Clone Of:
Environment:
Last Closed: 2015-11-19 08:52:44 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:2131 0 normal SHIPPED_LIVE Moderate: openldap security, bug fix, and enhancement update 2015-11-19 09:10:21 UTC

Description David Spurek 2014-12-16 11:31:17 UTC
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 12:30:28 UTC
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 14:53:16 UTC
*** Bug 1196243 has been marked as a duplicate of this bug. ***

Comment 10 errata-xmlrpc 2015-11-19 08:52:44 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, 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.