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 1961215 - Invalid sssd-kcm return code if requested operation is not found
Summary: Invalid sssd-kcm return code if requested operation is not found
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: beta
: ---
Assignee: Pavel Březina
QA Contact: Steeve Goveas
URL:
Whiteboard: sync-to-jira
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-05-17 14:26 UTC by Pavel Březina
Modified: 2023-09-16 19:03 UTC (History)
8 users (show)

Fixed In Version: sssd-2.5.1-1.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-09 19:47:29 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github SSSD sssd issues 5628 0 None closed kcm: return KRB5_FCC_INTERNAL when opcode is not found or not implemented 2021-05-17 14:26:48 UTC
Red Hat Product Errata RHBA-2021:4435 0 None None None 2021-11-09 19:47:44 UTC

Description Pavel Březina 2021-05-17 14:26:48 UTC
sssd-kcm should follow Heimdal's return codes. Heimdal returns `KRB5_FCC_INTERNAL` for cases where operation code is not known or not implemented. See:

* https://github.com/heimdal/heimdal/blob/master/kcm/protocol.c#L1785
* https://github.com/heimdal/heimdal/blob/master/kcm/protocol.c#L1792
  
SSSD currently retunrs different codes which makes Kerberos to differentiate between Heimdal and sssd implementation and this leads to errors like: https://github.com/krb5/krb5/pull/1178#issuecomment-838289703

Comment 1 Pavel Březina 2021-05-17 14:28:21 UTC
Sanity testing only.

Comment 2 Alexey Tikhonov 2021-05-18 10:20:42 UTC
Pushed PR: https://github.com/SSSD/sssd/pull/5629

* `master`
    * 9b017dbc80cf09b3a2d7e09f771faf70d4538b4f - KCM: return KRB5_FCC_INTERNAL for unknown or not implemented operation

Comment 10 errata-xmlrpc 2021-11-09 19:47:29 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-2021:4435


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