Red Hat Satellite engineering is moving the tracking of its product development work on Satellite 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 "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. 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 "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-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 1133940 - Avoid kinit on every IPA request in realm smart proxy
Summary: Avoid kinit on every IPA request in realm smart proxy
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Foreman Proxy
Version: Unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Katello QA List
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-08-26 13:38 UTC by Rob Crittenden
Modified: 2017-01-13 20:03 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-01-13 20:03:41 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 7466 0 None None None 2016-04-22 14:57:59 UTC
Red Hat Bugzilla 1133663 0 unspecified CLOSED [RFE] support gss-proxy in realm smart proxy 2021-02-22 00:41:40 UTC

Internal Links: 1133663

Description Rob Crittenden 2014-08-26 13:38:04 UTC
Description of problem:

The code in rkerberos.rb to obtain a ticket for communicating with an IPA server calls krb5.get_init_creds_keytab. This is a kinit using a keytab and is inefficient.

There are a number of possible solutions. Here are some suggestions, depending on RHEL release:

RHEL 6:

- Use a cron job to manage the ccache by doing a kinit every 6 hours or so.

OR

- Add logic to init_krb5_ccache to pull apart the ccache and look at expiration times before calling krb5.get_init_creds_keytab.

RHEL 7:

MIT Kerberos 1.11 has the ability to do client-initiated tickets via a keytab. In other words, an automatic kinit if a keytab is present. To do this set the environment variable KRB5_CLIENT_KTNAME to point to the keytab and KRB5CCNAME to the location of the ccache, then do a GSSAPI call such as gss_inquire_cred().

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

foreman-proxy-1.6.0.8-1.el6sat.noarch

Comment 1 RHEL Program Management 2014-08-26 13:53:12 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 3 Dominic Cleal 2014-09-16 14:09:02 UTC
Created redmine issue http://projects.theforeman.org/issues/7466 from this bug

Comment 4 Daniel Lobato Garcia 2015-02-06 19:49:02 UTC
Upstream bug assigned to None

Comment 5 Bryan Kearney 2015-08-25 18:07:19 UTC
Upstream bug component is Capsule

Comment 6 Bryan Kearney 2016-07-08 20:43:12 UTC
Per 6.3 planning, moving out non acked bugs to the backlog

Comment 8 Bryan Kearney 2016-10-11 16:06:06 UTC
Upstream bug assigned to stbenjam

Comment 9 Bryan Kearney 2016-10-11 16:06:09 UTC
Upstream bug assigned to stbenjam

Comment 10 Bryan Kearney 2016-10-18 16:06:26 UTC
Upstream bug component is Uncategorized

Comment 11 Bryan Kearney 2016-12-15 15:38:33 UTC
Upstream bug component is Capsule

Comment 12 Bryan Kearney 2017-01-13 20:03:41 UTC
This is an older bug which has been reported upstream. We are not going to track this bug downstream. When the upstream issue is resolved, the next build will contain the fix. Thank you.


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