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 2088817 - pam_sss_gss ceased to work after upgrade to 8.6
Summary: pam_sss_gss ceased to work after upgrade to 8.6
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: sssd
Version: 8.6
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: rc
: ---
Assignee: Pavel Březina
QA Contact: shridhar
URL:
Whiteboard: sync-to-jira
Depends On:
Blocks: 2089244
TreeView+ depends on / blocked
 
Reported: 2022-05-20 21:21 UTC by Tomasz Kepczynski
Modified: 2023-09-18 04:37 UTC (History)
11 users (show)

Fixed In Version: sssd-2.7.2-1.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2089244 (view as bug list)
Environment:
Last Closed: 2022-11-08 10:51:32 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-122674 0 None None None 2022-05-20 21:27:17 UTC
Red Hat Issue Tracker SSSD-4691 0 None None None 2022-05-30 10:58:24 UTC
Red Hat Product Errata RHBA-2022:7739 0 None None None 2022-11-08 10:51:50 UTC

Description Tomasz Kepczynski 2022-05-20 21:21:40 UTC
Description of problem:
I've recently upgraded AlmaLinux from 8.5 to 8.6.
I am using pam_sss_gss together with sudo.
This setup ceased to work under certain circumstances:
- it does NOT work when logged in using sss with gssapi-keyex authentication
- it works when logged in on Linux console (both text and sddm work).

Version-Release number of selected component (if applicable):
sssd-client-2.6.2-4.el8_6.x86_64

How reproducible:
Always, as described above.

Steps to Reproduce:
1. Log in using ssh and GSSAPI authentication to IPA client system.
2. Add 'auth sufficient pam_sss_gss.so' as the first line to /etc/pam.d/sudo and configure sssd.conf for the above.
3. Invoke 'sudo -l'. It asks for password while it should succeed with sss gss authentication.
4. When debug is enabled the following is printed:
pam_sss_gss: sss_cli_getenv() call failed [2]: No such file or directory

Actual results:
SSSD GSS authentication fails. sudo prompts for password.

Expected results:
SSSD GSS authentication succeeds. No password prompt.

Additional info:
This is caused by introduction of 'sss_cli_getenv' function in pam_sss_gss.c file and mishandling the NULL result from 'getenv' function. NULL is perfectly valid and SHOULD NOT result in error (ENOENT) returned by this function, especially that this case is properly handled by previous version of the module where default cache is picked (from sssd-client-2.5.2).

Please note the comment above call to 'sss_cli_getenv':
/* Get non-default ccache if specified, may be NULL. */
clearly indicates that the requested environment variable is OPTIONAL. Please handle it as such.

The same issue exists on Fedora 35.

Comment 1 Alexey Tikhonov 2022-05-23 09:07:11 UTC
Upstream PR: https://github.com/SSSD/sssd/pull/6172

Comment 4 Alexey Tikhonov 2022-05-30 10:38:02 UTC
Pushed PR: https://github.com/SSSD/sssd/pull/6172

* `master`
    * 9aad30711a5928f0e8a3627305b6449291de507f - pam_sss_gss: KRB5CCNAME may be NULL
* `sssd-2-7`
    * 0eae7db9e06645ef88d0cf15672770776293edb5 - pam_sss_gss: KRB5CCNAME may be NULL

Comment 15 errata-xmlrpc 2022-11-08 10:51:32 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 (sssd 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-2022:7739

Comment 16 Red Hat Bugzilla 2023-09-18 04:37:34 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days


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