Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1949070

Summary: 'try_first_pass' option no longer works on some PAM modules in RHEL8
Product: Red Hat Enterprise Linux 8 Reporter: kyoneyama <kyoneyam>
Component: authselectAssignee: Pavel Březina <pbrezina>
Status: CLOSED ERRATA QA Contact: Dan Lavu <dlavu>
Severity: low Docs Contact:
Priority: low    
Version: 8.3CC: dlavu, ipedrosa
Target Milestone: betaKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: authselect-1.2.2-3.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-09 19:59:51 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:

Comment 1 Pavel Březina 2021-04-21 11:35:36 UTC
Iker, can you please check if try_first_pass is still supported and if not what was the reason to remove it?

Comment 2 Iker Pedrosa 2021-04-21 13:32:43 UTC
Even though try_first_pass is mentioned in the pam_unix documentation I don't see any reference to it in the code apart from the arguments table in support.h. Unfortunately, I don't know if this is intentional and upstream is planning to retire or if it's an actual error. I've opened an issue upstream to track this part of the problem: https://github.com/linux-pam/linux-pam/issues/357

As for pam_pwquality, this module comes from another project. I've checked it and there isn't any reference in the documentation for the argument in Fedora 33. In any case, I'm adding Paul to the conversation so that he can comment.

Comment 3 Iker Pedrosa 2021-04-22 07:57:57 UTC
According to upstream pam_unix behaves as if 'try_first_pass' was always set and the documentation should be improved. So, I think that the reporter is right in that the argument can be removed for pam_unix.

Moreover, I have created a task for pam to improve the documentation: https://bugzilla.redhat.com/show_bug.cgi?id=1952388

Comment 5 Pavel Březina 2021-05-13 08:44:07 UTC
Upstream ticket:
https://github.com/authselect/authselect/issues/247

Upstream PR:
https://github.com/authselect/authselect/pull/248

Comment 8 Pavel Březina 2021-07-09 11:53:58 UTC
https://github.com/authselect/authselect/pull/248

Comment 16 errata-xmlrpc 2021-11-09 19:59:51 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 (authselect 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:4482