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 1961182 - Passwordless (GSSAPI) SSH not working due to missing "includedir /var/lib/sss/pubconf/krb5.include.d" directive in /etc/krb5.conf
Summary: Passwordless (GSSAPI) SSH not working due to missing "includedir /var/lib/sss...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: sssd
Version: 8.3
Hardware: x86_64
OS: Unspecified
low
low
Target Milestone: beta
: ---
Assignee: Iker Pedrosa
QA Contact: shridhar
URL:
Whiteboard: sync-to-jira
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-05-17 12:54 UTC by gestionesistemi
Modified: 2022-06-24 20:11 UTC (History)
11 users (show)

Fixed In Version: sssd-2.6.2-1.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-05-10 15:26:38 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2022:2070 0 None None None 2022-05-10 15:27:09 UTC

Description gestionesistemi 2021-05-17 12:54:25 UTC
Description of problem:
We are starting to install first machines with RHEL 8, using SSSD to integrate with an Active Directory domain.
Unlike RHEL7 systems, we are unable to login without password, using GSSAPI integration.
After some dbeug, we discovered that directive:
 includedir /var/lib/sss/pubconf/krb5.include.d
is missing in /etc/krb5.conf.
Adding it manually, passwordless SSH works again.

Version-Release number of selected component (if applicable):
sssd-2.3.0-9.el8.x86_64
krb5-*1.18.2-5.el8.x86_64
realmd-0.16.3-19.el8.x86_64
openssh-8.0p1-4.el8_1.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Install a fresh VM with RHEL 8.2/8.3
2. Configure SSSD and join to AD domain
3. Normal SSH access using password works, passwordless (GSSAPI) no

Actual results:


Expected results:


Additional info:
Is this directive really needed? Is it peraphs the real cause elsewhere?

Comment 2 Robbie Harwood 2021-05-17 14:49:21 UTC
Hi, krb5 isn't responsible for creating that.  I'm unsure what is these days (authselect?  authconfig?) so reassigning for further investigation.  (Possibly we may need to ask sssd as well?)

Comment 3 Pavel Březina 2021-05-18 08:36:10 UTC
SSSD should add a config snippet for this. Switching to SSSD.

Comment 4 gestionesistemi 2021-05-18 15:15:42 UTC
I tested RHEL 8.1/8.2/8.3 and "includedir /var/lib/sss/pubconf/krb5.include.d" is not added on any of these releases.
It was present in RHEL 7.x.

Comment 5 Alexey Tikhonov 2021-05-18 20:08:12 UTC
Looks similar to bz 1791016

Comment 6 gestionesistemi 2021-05-19 07:45:05 UTC
Similar but not the same. If I'm not wrong, upstream commit is only about setting default realm in krb5.conf.
Inluded content under /var/lib/sss/pubconf/krb5.include.d is more accurate.

Comment 7 gestionesistemi 2021-05-19 13:46:36 UTC
I can conform that realmd-0.16.3-22.el8.x86_64 in RHEL 8.4 adds only:
 default_realm = MYDOMAIN.COM
directly to /etc/krb5.conf. 
Includedir /var/lib/sss/pubconf/krb5.include.d should be more appropriate because:
- modifying directly main config file is never a good choice (indeed, almost all packages have a drop-in dir)
- included files are made better and allow passwordless (GSSAPI) SSH

Comment 10 Iker Pedrosa 2021-11-29 15:20:56 UTC
Upstream ticket:
https://github.com/SSSD/sssd/issues/5893

Comment 11 Iker Pedrosa 2021-11-29 15:25:59 UTC
Upstream PR:
https://github.com/SSSD/sssd/pull/5894

Comment 12 Alexey Tikhonov 2021-12-15 11:55:17 UTC
Pushed PR: https://github.com/SSSD/sssd/pull/5894

* `master`
    * 2a3035d30adf81cee05add8f6142f1d85d553909 - contrib: sssd krb5 configuration snippet

Comment 19 errata-xmlrpc 2022-05-10 15:26:38 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-2022:2070


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