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 1828270

Summary: simultaneous ssh sessions with an Active Directory user account is failed to issue TGT in one of the sessions.
Product: Red Hat Enterprise Linux 8 Reporter: Arya Rajendran <arajendr>
Component: sssdAssignee: SSSD Maintainers <sssd-maint>
Status: CLOSED WONTFIX QA Contact: sssd-qe <sssd-qe>
Severity: high Docs Contact:
Priority: medium    
Version: 8.2CC: atikhono, dchen, dpal, grajaiya, jhrozek, jjelen, lslebodn, mzidek, pbrezina, pkettman, rharwood, sbose, tscherf
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: sync-to-jira
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-08-31 02:21:09 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 16 Jakub Jelen 2020-05-14 09:55:37 UTC
From the log, it looks like sshd is not creating these tickets (and not doing anything with kerberos). They seems to be created by something in pam based on the provided password. Could that be pam_sssd? This would require debug logs from pam_sssd.

But what i see in the log, the environment variables are set by pam and passed by sshd to the shell process correctly:

  May 12 11:47:47 gn260002 sshd[3981]: debug3: Copy environment: KRB5CCNAME=FILE:/tmp/krb5cc_1471660683_BG82NP
  May 12 11:47:47 gn260002 sshd[3982]: debug3: Copy environment: KRB5CCNAME=FILE:/tmp/krb5cc_1471660683_WO0MII

This reflect the paths visible in the client logs:

  Ticket cache: FILE:/tmp/krb5cc_1471660683_BG82NP

  klist: No credentials cache found (filename: /tmp/krb5cc_1471660683_WO0MII)

Comment 31 Ding-Yi Chen 2021-08-31 02:21:09 UTC
To me, it looks like an expected behavior.

Let's recap:
1st Section: the ticket cache is
[exampleuser@examle ~]$ klist
Ticket cache: FILE:/tmp/krb5cc_123456_AqB9C8

2nd Section: the expected cache is not there
[exampleuser@examle ~]$ klist
klist: No credentials cache found (filename: FILE:/tmp/krb5cc_123456_212fazf)

Quote from sssd-krb5
~~~
krb5_ccname_template (string)
    Location of the user's credential cache. Three credential cache types are currently supported: “FILE”, “DIR” and “KEYRING:persis. The cache can be
    specified either as TYPE:RESIDUAL, or as an absolute path, which implies the “FILE” type. In the template, the following sequences are substituted:
...

    If the template ends with 'XXXXXX' mkstemp(3) is used to create a unique filename in a safe way.
~~~

In other words,  the cache file names are expected to random and unpredictable, even from other ssh session.

If you want to share the ccache amongst sessions, use either KEYRING,  KCM, or predictable filename like

FILE:/tmp/krb5cc_%{uid}

That is also default value of default_ccache_name.