My SSSD setup from Fedora 40 is no longer allowing my domain user to log in after the upgrade to the first Fedora 41 image. This is on a bazzite-desktop install, though I don’t believe this issue could be unique to bazzite. SSSD is joined to a Windows Active Directory with the following /etc/sssd/sssd.conf:
[sssd]
domains = raysdomain.com
config_file_version = 2
services = nss, pam
[domain/raysdomain.com]
debug_level = 9
ad_domain = raysdomain.com
krb5_realm = RAYSDOMAIN.COM
realmd_tags = manages-system joined-with-samba
cache_credentials = True
id_provider = ad
krb5_store_password_if_offline = True
default_shell = /bin/bash
ldap_id_mapping = True
use_fully_qualified_names = False
fallback_homedir = /home/%u
access_provider = ad
access_provider = simple
simple_allow_groups = linux-admins
The initial error was that /etc/krb5.keytab was not readable by the ‘sssd’ user, which I resolved by changing its permissions to 0644.
Oct 29 15:20:44 raypute ldap_child[6031]: krb5_kt_start_seq_get failed: Permission denied
Oct 29 15:20:44 raypute ldap_child[6031]: Failed to read keytab [FILE:/etc/krb5.keytab]: No suitable principal found in keytab
After doing that, SSSD will start but users cannot quite log in. I see this error in /var/log/sssd/krb5_child.log:
(2024-10-29 15:07:45): [krb5_child[4767]] [old_ccache_valid] (0x0040): [RID#124] Cannot check if saved ccache KCM: is valid
(2024-10-29 15:07:45): [krb5_child[4767]] [k5c_check_old_ccache] (0x0040): [RID#124] old_ccache_valid failed.
(2024-10-29 15:07:45): [krb5_child[4767]] [k5c_ccache_setup] (0x0020): [RID#124] Cannot check old ccache [KCM:]: [1][Operation not permitted]. Assuming old cache is invalid and not used.
(2024-10-29 15:07:45): [krb5_child[4767]] [k5c_precreate_ccache] (0x4000): [RID#124] Recreating ccache
(2024-10-29 15:07:45): [krb5_child[4767]] [become_user] (0x0200): [RID#124] Trying to become user [1011201125][1011200513].
(2024-10-29 15:07:45): [krb5_child[4767]] [become_user] (0x0020): [RID#124] setgroups failed [1][Operation not permitted].
(2024-10-29 15:07:45): [krb5_child[4767]] [main] (0x0020): [RID#124] become_user failed.
(2024-10-29 15:07:45): [krb5_child[4767]] [main] (0x0020): [RID#124] krb5_child failed!
I’m stuck at troubleshooting the ‘setgroups failed / Operation not permitted’ error here. Has anyone seen this before?