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.
Created attachment 1583187[details]
krb5.conf
Description of problem:
A RHEL 8.0 system set up for GSSAPI login for ssh allows to log in but does not actually store the ticket. klist shows no ticket after login. NFS4 with kerberos does not mount a home directory as a result.
Version-Release number of selected component (if applicable):
sssd-kcm-2.0.0-43.el8_0.3.x86_64
openssh-7.8p1-4.el8.x86_64
krb5-workstation-1.16.1-22.el8.x86_64
Additional info:
Running sshd in debug mode shows this:
debug1: temporarily_use_uid: 50515/103585 (e=0/0)
debug3: ssh_krb5_cc_new_unique: called
debug3: ssh_krb5_get_cctemplate: called
debug3: ssh_krb5_expand_template: called, template = KCM:
debug3: ssh_krb5_get_cctemplate: returning with ccname = KCM:
debug3: ssh_krb5_cc_new_unique: setting default ccname to KCM:
debug3: ssh_krb5_cc_new_unique: calling cc_new_unique(KCM:)
debug3: ssh_krb5_cc_new_unique: calling cc_switch()
ssh_krb5_cc_new_unique(): End of credential cache reached
which seems to indicate an error trying to store the TGT.
ssh_config, sshd_config and krb5.conf are attached.
Update: When using 'KEYRING' as cache the ticket is correctly forwarded. sshd logs the following in this case:
...
debug1: temporarily_use_uid: 50515/103585 (e=0/0)
debug3: ssh_krb5_cc_new_unique: called
debug3: ssh_krb5_get_cctemplate: called
debug3: ssh_krb5_expand_template: called, template = KEYRING:persistent:%{uid}
debug3: ssh_krb5_get_cctemplate: returning with ccname = KEYRING:persistent:50515
debug3: ssh_krb5_cc_new_unique: setting default ccname to KEYRING:persistent:50515
debug3: ssh_krb5_cc_new_unique: calling cc_new_unique(KEYRING:persistent:50515)
debug3: ssh_krb5_cc_new_unique: calling cc_switch()
debug1: restore_uid: 0/0
...
Hello Jakub,
Customer feedback.
Removing 'ccache_storage = memory' fixes this issue. That works for us so please close this request and the associated bug report unless RH wants to actually fix this also for the memory ccache storage.
Thanks,
Kushal
Pushed PR: https://github.com/SSSD/sssd/pull/5313
* `master`
* f126afc98e1e7ae1df685980dd1773e81ae10668 - KCM: Fix GSSAPI delegation for the memory back end
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-2021:1666
Created attachment 1583187 [details] krb5.conf Description of problem: A RHEL 8.0 system set up for GSSAPI login for ssh allows to log in but does not actually store the ticket. klist shows no ticket after login. NFS4 with kerberos does not mount a home directory as a result. Version-Release number of selected component (if applicable): sssd-kcm-2.0.0-43.el8_0.3.x86_64 openssh-7.8p1-4.el8.x86_64 krb5-workstation-1.16.1-22.el8.x86_64 Additional info: Running sshd in debug mode shows this: debug1: temporarily_use_uid: 50515/103585 (e=0/0) debug3: ssh_krb5_cc_new_unique: called debug3: ssh_krb5_get_cctemplate: called debug3: ssh_krb5_expand_template: called, template = KCM: debug3: ssh_krb5_get_cctemplate: returning with ccname = KCM: debug3: ssh_krb5_cc_new_unique: setting default ccname to KCM: debug3: ssh_krb5_cc_new_unique: calling cc_new_unique(KCM:) debug3: ssh_krb5_cc_new_unique: calling cc_switch() ssh_krb5_cc_new_unique(): End of credential cache reached which seems to indicate an error trying to store the TGT. ssh_config, sshd_config and krb5.conf are attached.