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 828066

Summary: klist says expiration date is in the past
Product: Red Hat Enterprise Linux 7 Reporter: Michal Trunecka <mtruneck>
Component: krb5Assignee: Nalin Dahyabhai <nalin>
Status: CLOSED NOTABUG QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0CC: ebenes
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-11 07:57:13 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:

Description Michal Trunecka 2012-06-04 07:29:23 UTC
Description of problem:
I checked my kerberos credentials on RHEL7 and klist claim that expiration date of the ticket is in the past. See the following output from klist:

[root@dhcp-24-117 bz747239-quota_nld-and-similar]# klist
Ticket cache: FILE:/tmp/krb5cc_0
Default principal: mtruneck

Valid starting     Expires            Service principal
06/04/12 08:56:13  05/31/12 15:13:58  krbtgt/REDHAT.COM
	renew until 06/04/12 08:56:13


Version-Release number of selected component (if applicable):

[root@dhcp-24-117 bz747239-quota_nld-and-similar]# rpm -qa krb5\*
krb5-libs-1.10-6.el7.x86_64
krb5-workstation-1.10-6.el7.x86_64


How reproducible:

Steps to Reproduce:
1. Authenticate with kerberos (kinit)
2. Run klist
  
Actual results:
Expiration date is in the past

Expected results:
Expiration date is in the future

Additional info:

This is the same output on RHEL6.3:
[mtrunecka@dhcp-24-198 ~]$ klist
Ticket cache: FILE:/tmp/krb5cc_501
Default principal: mtruneck

Valid starting     Expires            Service principal
06/04/12 08:12:21  06/04/12 18:12:21  krbtgt/REDHAT.COM
	renew until 06/04/12 08:12:21

Comment 1 Nalin Dahyabhai 2012-06-04 15:26:56 UTC
Please attach or paste in the contents of your /etc/krb5.conf file, so that we can be sure we're using the same settings that you are.

Comment 2 Michal Trunecka 2012-06-06 06:55:39 UTC
Here is my /etc/krb5.confL

[root@dhcp-24-117 ~]# cat /etc/krb5.conf 
[logging]
 default = FILE:/var/log/krb5libs.log
 kdc = FILE:/var/log/krb5kdc.log
 admin_server = FILE:/var/log/kadmind.log

[libdefaults]
 dns_lookup_realm = false
 ticket_lifetime = 24h
 renew_lifetime = 7d
 forwardable = true
# default_realm = EXAMPLE.COM

 default_realm = REDHAT.COM
 dns_lookup_kdc = false
[realms]
# EXAMPLE.COM = {
#  kdc = kerberos.example.com
#  admin_server = kerberos.example.com
# }

 REDHAT.COM = {
  kdc = kerberos.corp.redhat.com
  admin_server = kerberos.corp.redhat.com
 }

[domain_realm]
# .example.com = EXAMPLE.COM
# example.com = EXAMPLE.COM
 redhat.com = REDHAT.COM
 .redhat.com = REDHAT.COM

Comment 3 Nalin Dahyabhai 2012-06-06 14:32:01 UTC
Even with the same binaries and configuration, I couldn't reproduce this.  Are you certain that the date is correctly set on your client?

Comment 4 Michal Trunecka 2012-06-11 07:57:13 UTC
Yes, that's it, I had wrong time. It was virutal machine and it didn't synchronize the time. I'm sorry for this unneccessary bug report.