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 1919026 - libpwquality rpm requires cracklib-dicts to function but RPM missing requirement
Summary: libpwquality rpm requires cracklib-dicts to function but RPM missing requirement
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: libpwquality
Version: 8.3
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: 8.0
Assignee: Dmitry Belyavskiy
QA Contact: Ondrej Moriš
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-01-21 23:05 UTC by James Hartsock
Modified: 2024-10-01 17:21 UTC (History)
3 users (show)

Fixed In Version: libpwquality-1.4.4-3.el8
Doc Type: Bug Fix
Doc Text:
cracklib package is needed for libpwquality to work but package was not requiring it
Clone Of:
Environment:
Last Closed: 2021-05-18 14:49:43 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 5726591 0 None None None 2021-01-21 23:31:11 UTC
Red Hat Product Errata RHBA-2021:1605 0 None None None 2021-05-18 14:49:47 UTC

Internal Links: 1992607

Description James Hartsock 2021-01-21 23:05:43 UTC
Description of problem:
libpwquaily rpm requires cracklib-dict to function but RPM missing requirement

Version-Release number of selected component (if applicable):
# rpm -qa | egrep 'libpwquality|cracklib'
libpwquality-1.4.0-9.el8.x86_64
cracklib-2.9.6-15.el8.x86_64


How reproducible:
100%

Steps to Reproduce:
1. Minimal OS install via kickstart
2. Create User
3. Have user attempt to change password

Actual results:
[hartsjc@localhost ~]$ passwd
Changing password for user hartsjc.
Current password: 
New password: 
/usr/share/cracklib/pw_dict.pwd.gz: No such file or directory
BAD PASSWORD: The password fails the dictionary check - error loading dictionary
passwd: Authentication token manipulation error

Expected results:
User should be able to change password

Additional info:

1. Issue is still present with RHEL 8.4 libpwquality-1.4.4-1.el8

2. dnf will pick up the cracklib-dict as a weak dependency.

   # dnf reinstall libpwquality
   ========================================================================================================================
    Package                       Architecture          Version                     Repository                        Size
   ========================================================================================================================
   Reinstalling:
    libpwquality                  x86_64                1.4.0-9.el8         rhel-8-for-x86_64-baseos-rpms             103 k
   Installing weak dependencies:
    cracklib-dicts                x86_64                2.9.6-15.el8        rhel-8-for-x86_64-baseos-rpms             4.0 M
   ========================================================================================================================

3. But dependency is NOT picked up at RPM level, and thus repository, satellite, and anaconda fail to enforce/require the cracklib-dict dependency.

   # rpm --test -U ./libpwquality-1.4.4-1.el8.x86_64.rpm ; echo $?
   0
   # rpm -U ./libpwquality-1.4.4-1.el8.x86_64.rpm ; echo $?
   0

4. So while the cracklib-dict RPM dependecy isn't set, the RPM states it as requirement in info

   # rpm -q --info libpwquality | sed -n '/^Description/,/^BoGuS$/p'
   Description :
   This is a library for password quality checks and generation
   of random passwords that pass the checks.
   This library uses the cracklib and cracklib dictionaries <----- says needs cracklib-dict in text
   to perform some of the checks.


   # rpm -q --requires libpwquality | grep -i crack
   libcrack.so.2()(64bit) <----------------------- Actual required need

   # rpm -q --provides cracklib | grep libcrack.so
   libcrack.so.2()(64bit) <----------------------- Meets required need

Comment 12 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


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