Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 864223

Summary: x11-misc/sddm: unable to login when using a systemd-homed account (possible sys-auth/pambase issue?)
Product: Gentoo Linux Reporter: nvaert1986 <nvaert1986>
Component: Current packagesAssignee: LxQt maintainers <lxqt>
Status: RESOLVED UPSTREAM    
Severity: normal CC: base-system, kde, sam, systemd, zlogene
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info

Description nvaert1986 2022-08-07 14:47:06 UTC
I'm unable to login to SDDM when using an account created by systemd-homed. Initially the user was invisible. I resolved this, by changing the MaxGuid and MinGuid parameters in SDDM. After whenever I try to login, SDDM flashes twice and just goes back to the main page. Logging in via the CLI works fine. I have the homed USE flag set (and thus enabled in pambase). - I've tried to create a user using useradd and reverting back the MinGuid and MaxGuid and when creating the user using useradd, I'm able to log in just fine. So it's not the user account.

Reproducible: Always

Steps to Reproduce:
1.Create an account using homectl (used luks as storage-type)
2.Adjust MinGuid and MaxGuid conforming systemd-homed
3.Start SDDM and login with the specified accounts
Actual Results:  
I get redirected back to the main screen

Expected Results:  
A logged in user


Please let me know what additional information is needed
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-08-10 03:33:03 UTC
CCing pambase maintainers in case it's our fault / systemd maintainers.
Comment 2 nvaert1986 2022-08-10 06:13:27 UTC
After re-compiling all related packages on my system, it's logging in, but only if I type the password correctly the first time. 

- If I make a typo and try to login, it won't login anymore, having to reboot my computer or switch to the CLI.
- In rare cases I'm unable to login to SDDM on boot as well (even with the password typed correctly), where it does not display any message and just sits there, allowing me to type in the password and press enter or click on the arrow, but nothing happens. No message, no response nothing.

Is there any additional information  you guys need? Please let me know if you do. I'll attach my emerge --info as that's the least I can do.
Comment 3 nvaert1986 2022-08-10 06:14:22 UTC
Created attachment 799057 [details]
emerge --info
Comment 4 nvaert1986 2023-12-19 09:58:36 UTC
The problem seems to be gone with x11-misc/sddm-0.20.0-r1. I do get an incorrect error message whenever making a typo in my password, but at least I can login whenever I type my password correctly the second time. Marking this as resolved.