Bug 31287 - gdm still tries to load pam_cracklib which has been deprecated
Summary: gdm still tries to load pam_cracklib which has been deprecated
Status: REOPENED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Marc Krämer
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-16 14:58 CET by Marc Krämer
Modified: 2023-01-01 12:59 CET (History)
2 users (show)

See Also:
Source RPM: gdm-43.0-1.mga9
CVE:
Status comment:


Attachments

Description Marc Krämer 2022-12-16 14:58:00 CET
Systemlog shows this entry:

Dec 16 14:51:03 localhost su[2130]: PAM adding faulty module: /usr/lib64/security/pam_cracklib.so
Dec 16 14:51:03 localhost su[2130]: PAM unable to dlopen(/usr/lib64/security/pam_cracklib.so): /usr/lib64/security/pam_cracklib.so: cannot open shared object file: No >
Comment 1 Lewis Smith 2022-12-16 20:24:47 CET
Just checked my own system journal, which shows also:

 Rha 16 20:03:40 gdm-password][2191]: PAM unable to dlopen(/usr/lib64/security/pam_cracklib.so): /usr/lib64/security/pam_cracklib.so: cannot open shared object file: No such file or directory
 Rha 16 20:03:40 gdm-password][2191]: PAM adding faulty module: /usr/lib64/security/pam_cracklib.so
 followed by:
Rha 16 20:03:40 gdm-password][2191]: pam_succeed_if(gdm-password:auth): requirement "user ingroup nopasswdlogin" not met by user "lewis"

This is using GDM to Xfce, but no adverse effects.
I cannot find where this library comes from exactly. The nearest I found was:
 webmin:/usr/share/webmin/pam/pam_cracklib.so.pl
but doubt this is the one.

Assigning globally, but whatever it is it does not seem to matter.

Summary: PAM: log entry => PAM: errors in journal re '/usr/lib64/security/pam_cracklib.so'
Assignee: bugsquad => pkg-bugs

Comment 2 Dave Hodgins 2022-12-16 21:18:44 CET
gdm still tries to load pam_cracklib which has been obsoleted and removed
from lib64pam0.

# grep -r cracklib /etc/pam.d/*
/etc/pam.d/gdm-smartcard:password    requisite     pam_cracklib.so try_first_pass retry=3 type=

Attempts to load the library been removed from sddm, but not from gdm.

Source RPM: pam-1.5.2-2.mga9.src.rpm => gdm-43.0-1.mga9
Summary: PAM: errors in journal re '/usr/lib64/security/pam_cracklib.so' => gdm still tries to load pam_cracklib which has been deprecated
CC: (none) => davidwhodgins

Comment 3 Marc Krämer 2022-12-17 09:27:25 CET
so it should be removed from gdm-pam plugin as well.
Comment 4 Dave Hodgins 2022-12-17 14:41:20 CET
(In reply to Marc Krämer from comment #3)
> so it should be removed from gdm-pam plugin as well.

Yes.
Marc Krämer 2022-12-17 18:59:50 CET

Assignee: pkg-bugs => mageia

Comment 5 Marc Krämer 2022-12-17 19:02:20 CET
It is just an an mga patch from 2016.
Comment 6 Marc Krämer 2022-12-17 19:03:54 CET
building.

Status: NEW => RESOLVED
Resolution: (none) => FIXED

Comment 7 Jani Välimaa 2022-12-31 14:50:25 CET
Reopening, but feel free to close again if there's a technical justification for it.

pam_pwquality replaced pam_cracklib so I think simply removing all pam_cracklib occurrences isn't what we really want.

According to pam_pwquality man page:
"This module can be plugged into the password stack of a given service to provide some plug-in strength-checking for passwords. The code was originally based on pam_cracklib module and the module is backwards compatible with its options."

CC: (none) => jani.valimaa
Resolution: FIXED => (none)
Status: RESOLVED => REOPENED

Comment 8 Marc Krämer 2022-12-31 17:28:07 CET
@Jani: if we want this, shouldn't it be added to system-auth instead of every service itself?
Comment 9 Jani Välimaa 2022-12-31 22:06:51 CET
(In reply to Marc Krämer from comment #8)
> @Jani: if we want this, shouldn't it be added to system-auth instead of
> every service itself?

It's already there, but 'every service itself' must have at least 'password include system-auth' to make it to work.
Comment 10 Marc Krämer 2023-01-01 11:35:53 CET
hmm, ok. So we have to check for every service in /etc/pam.d if it includes this and update that package?
I'd say, go ahead - I don't usally change pam, so I might make mistakes here.
Comment 11 Jani Välimaa 2023-01-01 12:59:26 CET
I don't think there are many such pkgs left, but at least the patch in gdm should be reviewed.

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