Bug 416801 - Impossible to start Plasma session with a user account created by User Manager. SDDM says "Authentication failed".
Summary: Impossible to start Plasma session with a user account created by User Manage...
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_users (show other bugs)
Version: 5.17.90
Platform: Arch Linux Linux
: VHI grave
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2020-01-26 19:14 UTC by Patrick Silva
Modified: 2020-01-29 18:12 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.18


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Silva 2020-01-26 19:14:17 UTC
SUMMARY
Reproducible on both Arch Linux (Plasma 5.18 beta) and Neon unstable edition.

STEPS TO REPRODUCE
1. open system settings > account details > user manager
2. click on "+" button on bottom
3. type your user name and "Real Name"
4. type nothing in "Email address" field
5. set your password
6. leave both checkboxes unchecked
7. click on "Apply" button
8. do logout
9. try to start Plasma session with your new user account

OBSERVED RESULT
SDDM says "Authentication failed". If I start Plasma with another user account
and change the password of the user account created with the steps above, login works.

EXPECTED RESULT
We always can start Plasma with a user account created by User Manager

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.17.90
KDE Frameworks Version: 5.66.0
Qt Version: 5.14.0
Comment 1 Nate Graham 2020-01-28 20:04:40 UTC
Works for me. What exact text did you enter in the text fields?
Comment 2 Patrick Silva 2020-01-28 20:23:41 UTC
(In reply to Nate Graham from comment #1)
> What exact text did you enter in the text fields?

Tested again on Arch Linux, Plasma 5.18 beta. Same result.

username = test
real name = Bug Triaging
password = usermanager

Operating System: Arch Linux 
KDE Plasma Version: 5.17.90
KDE Frameworks Version: 5.66.0
Qt Version: 5.14.1
Comment 3 Nate Graham 2020-01-28 21:25:05 UTC
I can't reproduce this, but it might be due to my cobbled-together session. Since you can, I'm marking this as CONFIRMED with high priority.
Comment 4 Méven Car 2020-01-29 16:59:13 UTC
Hey Patrick, did you use the keyboard to confirm the user password or the mouse to click on ok ?
Comment 5 Patrick Silva 2020-01-29 17:15:08 UTC
I have just tested both methods on Arch Linux, confirming password firstly with keyboard and after with mouse. Login fails on both cases.
Comment 6 Méven Car 2020-01-29 17:55:07 UTC
I have a patch now https://phabricator.kde.org/D26998
Comment 7 Méven Car 2020-01-29 18:11:27 UTC
Git commit 184a544cdef0f3d8834e1495d1f66aa2298a1468 by Méven Car.
Committed on 29/01/2020 at 18:11.
Pushed by meven into branch 'Plasma/5.18'.

Fix new user creation

Summary:
UserAdded was called only when other parameters were provided for a new user beside name and realname.
Which could not happen since 2471fa7d252de904b305dac77171fa300d66c05d and given the order the setData are called in accountinfo.cpp

Alternative to D26977
FIXED-IN: 5.18

Test Plan:
Create a new user with a password
in a terminal su new_user

Reviewers: ngraham, davidedmundson, #plasma

Reviewed By: davidedmundson, #plasma

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D26998

M  +2    -2    src/lib/accountmodel.cpp

https://commits.kde.org/user-manager/184a544cdef0f3d8834e1495d1f66aa2298a1468
Comment 8 Patrick Silva 2020-01-29 18:12:13 UTC
I have just applied your patch on Arch Linux.
Really it fixes this bug. \o/
Thank you very much Méven.