Bug 2354031 - Incorrect Kerberos cache type in pam_winbind
Summary: Incorrect Kerberos cache type in pam_winbind
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: realmd
Version: 41
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Sumit Bose
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-03-21 08:44 UTC by Luca Cavana
Modified: 2025-12-17 04:34 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-12-17 04:34:05 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Luca Cavana 2025-03-21 08:44:43 UTC
When a Fedora 41 or RHEL 9.5 system is joined to an Active Directory domain by using Winbind, realmd configures the pam_winbind library with a cache type = FILE instead of KCM.

Reproducible: Always

Steps to Reproduce:
1. Install a clean Fedora 41 or RHEL 9.5 system.
2. Configure hostname, DNS and chronyd correctly so you can join a domain
3. Install the required components to perform the domain join operation:

sudo dnf install \
realmd oddjob oddjob-mkhomedir samba-winbind-clients samba-winbind samba-common-tools samba-winbind-krb5-locator krb5-workstation

4. Join the system to the domain:

realm join --membership-software=samba --client-software=winbind --user=user domain.com

5. Reboot the system and verify you have a Kerberos ticket by running

klist

Actual Results:  
The list of tickets returned by klist is empty.

Expected Results:  
You have Kerberos Tickets.

The pam_winbind module is configured incorrectly by realmd with the line

krb5_ccache_type = FILE

in /etc/security/pam_winbind.conf file.

The Kerberos library will search for a Kerberos cache in SSSD-KCM by default both on RHEL 9.x and Fedora 40+ as specified in the /etc/krb5.conf.d/kcm_default_ccache file.

Simply modifying the /etc/security/pam_winbind.conf file with

krb5_ccache_type = KCM

fixes the issue, and then you are able to use the Winbind PAM modules cached tickets by using the system Kerberos library.
SSSD-KCM is installed by default and waits for a socket connection, no further configuration is required to have a working system.

Comment 1 Adam Williamson 2025-12-02 02:45:09 UTC
This message is a reminder that Fedora Linux 41 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 41 on 2025-12-15.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '41'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 41 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 2 Samyak Jain (RedHat) 2025-12-17 04:34:05 UTC
Fedora Linux 41 entered end-of-life (EOL) status on 2025-12-15.

Fedora Linux 41 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of Fedora Linux
please feel free to reopen this bug against that version. Note that the version
field may be hidden. Click the "Show advanced fields" button if you do not see
the version field.

If you are unable to reopen this bug, please file a new report against an
active release.

Thank you for reporting this bug and we are sorry it could not be fixed.


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