Bug 2481235 - Password for trusted user not available when sssd backend is offline
Summary: Password for trusted user not available when sssd backend is offline
Keywords:
Status: CLOSED DUPLICATE of bug 2466974
Alias: None
Product: Fedora
Classification: Fedora
Component: sssd
Version: 44
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: sssd-maintainers
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-05-25 16:05 UTC by Kanwar Ranbir Sandhu
Modified: 2026-05-26 07:55 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2026-05-26 07:55:54 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Kanwar Ranbir Sandhu 2026-05-25 16:05:29 UTC
I'm running a Fedora 44 desktop that was upgraded (in-place) from Fedora 43. The desktop is enrolled into an AlmaLinux 9 IdM domain that is in a trust with AD. Trusted users can login when sssd is connected to IdM. When the connection to IdM is unavailable (e.g. the VPN drops), new logins with trusted user account are denied and existing trusted user logins can't use sudo (denied).

Offline logins or sudo use with trusted users has worked flawlessly for many releases. It also worked after the upgrade to Fedora 44. The current issue began less than a month ago.

I have no changes on the IdM domain side (or in AD, that I know of).

Offline login attemps fail immediately (there is zero delay). If I try offline sudo usage, it fails immediately after I enter the password, but the password prompt takes a few seconds to appear.

User lookup while offline does work (i.e. id trustedUser or sssctl user-checks trustedUser.tld).

Reproducible: Always

Steps to Reproduce:
1. Connect to VPN 
2. Login with trusted user into GNOME or via ssh
3. Use sudo with any command
4. Disconnect the VPN
5. Try new login to GNOME or via ssh
6. Try sudo with any command
Actual Results:
Immediate login fail or sudo use denied.

Expected Results:
Offline login or sudo use allowed, with some initial delay because sssd has to determine the backend is offline and switches to using the cached credentials.

Additional Information:
ranbir@pc:~$ ssh trustedUseru.domain.tld
(trustedUser.domain.tld) Password: 
Connection closed by 1.2.3.4 port 22

Interesting log from the journal for sshd:
sshd-session[99030]: error: PAM: User account has expired for [[removed username]]

Comment 1 Alexey Tikhonov 2026-05-25 16:35:04 UTC
Could you please review bz 2466974 and bz 2464782 to see if this is a duplicate?

Comment 2 Kanwar Ranbir Sandhu 2026-05-25 17:39:25 UTC
(In reply to Alexey Tikhonov from comment #1)
> Could you please review bz 2466974 and bz 2464782 to see if this is a
> duplicate?

Yes, those sound exactly like what I'm experiencing and what I described here.

This one can be marked as a duplicate.

Comment 3 Alexey Tikhonov 2026-05-26 07:55:54 UTC

*** This bug has been marked as a duplicate of bug 2466974 ***


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