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 1741306 - sssd-kcm: type confusion on KDC offset
Summary: sssd-kcm: type confusion on KDC offset
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: sssd
Version: ---
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.0
Assignee: SSSD Maintainers
QA Contact: sssd-qe
URL:
Whiteboard: sync-to-jira
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-08-14 17:57 UTC by Robbie Harwood
Modified: 2023-02-12 23:38 UTC (History)
11 users (show)

Fixed In Version: sssd-2.2.3-2.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-04-28 16:56:04 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github SSSD sssd issues 5031 0 None None None 2020-05-02 19:12:01 UTC
Red Hat Issue Tracker RHELPLAN-25576 0 None None None 2023-02-12 23:37:53 UTC
Red Hat Issue Tracker SSSD-1947 0 None None None 2023-02-12 23:38:37 UTC
Red Hat Product Errata RHBA-2020:1863 0 None None None 2020-04-28 16:56:17 UTC

Description Robbie Harwood 2019-08-14 17:57:28 UTC
KDC offset is an int32 - i.e., a signed type.  However, KCM doesn't treat it as such.  That means that the following is logged for an offset value of -2419176:

(Wed Sep 11 12:49:53 2019) [sssd[kcm]] [kcm_op_get_kdc_offset_getbyname_done] (0x1000): KDC offset: 4292548120

Comment 1 Jakub Hrozek 2019-08-14 18:58:46 UTC
Upstream ticket:
https://pagure.io/SSSD/sssd/issue/4063

Comment 2 Sumit Bose 2019-08-23 16:41:55 UTC
Master:
 - c580c76a2affc377850303cc81a1519075d174f2

Comment 3 Michal Zidek 2020-01-15 12:13:21 UTC
This bug was fixed as part of the rebase we did in RHEL 8.2.0. It would be good to fully ack it and include in the erratum.

Comment 4 Steeve Goveas 2020-01-20 09:44:40 UTC
Please add steps to test

Comment 5 Sumit Bose 2020-01-22 13:45:11 UTC
(In reply to Steeve Goveas from comment #4)
> Please add steps to test

Hi,

please see the description of https://bugzilla.redhat.com/show_bug.cgi?id=1757299#c0.

- make sure sssd-kcm is installed so that KCM is used as default ccache type
- log in with password to e.g. an IPA client to get a Kerberos ticket and make sure with klist it is stored with KCM
- try to ssh to the same host, it should work with the Kerberos ticket without asking for a password

HTH

bye,
Sumit

Comment 7 Niranjan Mallapadi Raghavender 2020-03-04 07:41:23 UTC
# versions:

sssd-client-2.2.3-18.el8.x86_64
sssd-ipa-2.2.3-18.el8.x86_64
sssd-kcm-2.2.3-18.el8.x86_64
sssd-dbus-2.2.3-18.el8.x86_64
sssd-2.2.3-18.el8.x86_64
sssd-nfs-idmap-2.2.3-16.el8.x86_64
python3-sssdconfig-2.2.3-18.el8.noarch
sssd-common-pac-2.2.3-18.el8.x86_64
sssd-ldap-2.2.3-18.el8.x86_64
sssd-tools-2.2.3-18.el8.x86_64
sssd-common-2.2.3-18.el8.x86_64
sssd-ad-2.2.3-18.el8.x86_64
sssd-krb5-common-2.2.3-18.el8.x86_64
sssd-proxy-2.2.3-18.el8.x86_64
sssd-winbind-idmap-2.2.3-18.el8.x86_64
sssd-krb5-2.2.3-18.el8.x86_64

Verification from AD
=====================

1. Join the system to Windows 

[root@client1 ~]# realm join -U Administrator -v SARABHAI.TEST
 * Resolving: _ldap._tcp.sarabhai.test
 * Performing LDAP DSE lookup on: 192.168.122.216
 * Successfully discovered: SARABHAI.TEST
Password for Administrator:
 * Required files: /usr/sbin/oddjobd, /usr/libexec/oddjob/mkhomedir, /usr/sbin/sssd, /usr/sbin/adcli
 * LANG=C /usr/sbin/adcli join --verbose --domain SARABHAI.TEST --domain-realm SARABHAI.TEST --domain-controller 192.168.122.216 --login-type user --login-user Administrator --stdin-password
 * Using domain name: SARABHAI.TEST
 * Calculated computer account name from fqdn: CLIENT1
 * Using domain realm: SARABHAI.TEST
 * Sending netlogon pings to domain controller: cldap://192.168.122.216
 * Received NetLogon info from: vikram.SARABHAI.TEST
 * Wrote out krb5.conf snippet to /var/cache/realmd/adcli-krb5-hpZ9rS/krb5.d/adcli-krb5-conf-MtVCMd
 * Authenticated as user: Administrator
 * Using GSS-SPNEGO for SASL bind
 * Looked up short domain name: SARABHAI
 * Looked up domain SID: S-1-5-21-1672089527-2408710569-2399489135
 * Using fully qualified name: client1.testrealm.test
 * Using domain name: SARABHAI.TEST
 * Using computer account name: CLIENT1
 * Using domain realm: SARABHAI.TEST
 * Calculated computer account name from fqdn: CLIENT1
 * Generated 120 character computer password
 * Using keytab: FILE:/etc/krb5.keytab
 * Found computer account for CLIENT1$ at: CN=CLIENT1,CN=Computers,DC=SARABHAI,DC=TEST
 * Sending netlogon pings to domain controller: cldap://192.168.122.216
 * Received NetLogon info from: vikram.SARABHAI.TEST
 * Set computer password
 * Retrieved kvno '6' for computer account in directory: CN=CLIENT1,CN=Computers,DC=SARABHAI,DC=TEST
 * Checking RestrictedKrbHost/client1.testrealm.test
 *    Added RestrictedKrbHost/client1.testrealm.test
 * Checking RestrictedKrbHost/CLIENT1
 *    Added RestrictedKrbHost/CLIENT1
 * Checking host/client1.testrealm.test
 *    Added host/client1.testrealm.test
 * Checking host/CLIENT1
 *    Added host/CLIENT1
 * Discovered which keytab salt to use
 * Added the entries to the keytab: CLIENT1$@SARABHAI.TEST: FILE:/etc/krb5.keytab
 * Added the entries to the keytab: host/CLIENT1: FILE:/etc/krb5.keytab
 * Added the entries to the keytab: host/client1.testrealm.test: FILE:/etc/krb5.keytab
 * Added the entries to the keytab: RestrictedKrbHost/CLIENT1: FILE:/etc/krb5.keytab
 * Added the entries to the keytab: RestrictedKrbHost/client1.testrealm.test: FILE:/etc/krb5.keytab
 * /usr/bin/systemctl enable sssd.service
Created symlink /etc/systemd/system/multi-user.target.wants/sssd.service → /usr/lib/systemd/system/sssd.service.
 * /usr/bin/systemctl restart sssd.service
 * /usr/bin/sh -c /usr/bin/authselect select sssd with-mkhomedir --force && /usr/bin/systemctl enable oddjobd.service && /usr/bin/systemctl start oddjobd.service
Profile "sssd" was selected.
The following nsswitch maps are overwritten by the profile:
- passwd
- group
- netgroup
- automount
- services

Make sure that SSSD service is configured and enabled. See SSSD documentation for more information.

- with-mkhomedir is selected, make sure pam_oddjob_mkhomedir module
  is present and oddjobd service is enabled
  - systemctl enable oddjobd.service
  - systemctl start oddjobd.service
 * Successfully enrolled machine in realm
[root@client1 ~]# klist -k /etc/krb5.keytab
Keytab name: FILE:/etc/krb5.keytab
KVNO Principal
---- --------------------------------------------------------------------------
   6 CLIENT1$@SARABHAI.TEST
   6 CLIENT1$@SARABHAI.TEST
   6 host/CLIENT1
   6 host/CLIENT1
   6 host/client1.testrealm.test
   6 host/client1.testrealm.test
   6 RestrictedKrbHost/CLIENT1
   6 RestrictedKrbHost/CLIENT1
   6 RestrictedKrbHost/client1.testrealm.test
   6 RestrictedKrbHost/client1.testrealm.test


[root@client1 ~]# kinit niranjan
Password for niranjan: 
[root@client1 ~]# klist
Ticket cache: KCM:0
Default principal: niranjan

Valid starting       Expires              Service principal
03/04/2020 13:09:28  03/04/2020 23:09:28  krbtgt/SARABHAI.TEST
        renew until 03/05/2020 13:09:26
[root@client1 ~]# ssh niranjan.test 
FIPS mode initialized
Last login: Wed Mar  4 12:56:32 2020 from 192.168.122.238
[niranjan@client1 ~]$ 


Verification from IPA 
======================

[root@server1 ~]# ipactl status
Directory Service: RUNNING
krb5kdc Service: RUNNING
kadmin Service: RUNNING
named Service: RUNNING
httpd Service: RUNNING
ipa-custodia Service: RUNNING
pki-tomcatd Service: RUNNING
ipa-otpd Service: RUNNING
ipa-dnskeysyncd Service: RUNNING
ipa: INFO: The ipactl command was successful
[root@server1 ~]# 


[root@server1 ~]# kinit lheslin
Password for lheslin: 
[root@server1 ~]# klist
Ticket cache: KCM:0
Default principal: lheslin

Valid starting       Expires              Service principal
03/04/2020 13:10:52  03/05/2020 13:10:50  krbtgt/TESTREALM.TEST
[root@server1 ~]# ssh lheslin.test 
Last login: Wed Mar  4 12:14:13 2020 from 192.168.122.5
Could not chdir to home directory /home/lheslin: No such file or directory
[lheslin@server1 /]$

Comment 9 errata-xmlrpc 2020-04-28 16:56:04 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, 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-2020:1863


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