Bug 1271377

Summary: Corner case where sddm allows the login even if the provided password is wrong
Product: [Fedora] Fedora Reporter: Giulio 'juliuxpigface' <juliux.pigface>
Component: pamAssignee: Tomas Mraz <tmraz>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 23CC: jgrulich, kevin, ltinkl, mbriza, me, pierluigi.fiorini, rdieter, tmraz
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-10-14 07:21:38 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Giulio 'juliuxpigface' 2015-10-13 19:19:53 UTC
Description of problem:
I found what seems a corner case where sddm allows the login even if the provided password is (strictly speaking...) actually "wrong". This might not be a true bug, but *in my opinion* the behavior of sddm is not what an user expects.


Version-Release number of selected component (if applicable):
sddm-0.12.0-3.fc23.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Configure an user without password (with initial-setup, for example)
2. Boot Fedora 23 KDE
3. Type random characters on the password field

Actual results:
1. sddm should refuse the login (the real password is blank).

Expected results:
1. sddm allows the user to login, even if the password is wrong.

Additional info:
Since I encountered the same situation with lightdm (https://bugzilla.redhat.com/show_bug.cgi?id=1268649) and lxdm (https://bugzilla.redhat.com/show_bug.cgi?id=1268624) too, I'm starting to think that I'm wrong and this is an expected behavior.

Comment 1 Rex Dieter 2015-10-13 19:29:03 UTC
It probably is expected, and is handled at the PAM layer (which is why all login managers behave the same).

Comment 2 Giulio 'juliuxpigface' 2015-10-13 19:34:42 UTC
Hi Rex, thank you for the quick answer.

(In reply to Rex Dieter from comment #1)
> It probably is expected, and is handled at the PAM layer (which is why all
> login managers behave the same).

So... That's might be the reason why I encountered this while unlocking the screen too: filing another one report for it, seems useless, then.

Comment 3 Rex Dieter 2015-10-13 19:51:03 UTC
Reassigning to pam, for authoritative opinion on how blank passwords are expected to work.

Comment 4 Rex Dieter 2015-10-13 19:51:30 UTC
*** Bug 1268649 has been marked as a duplicate of this bug. ***

Comment 5 Rex Dieter 2015-10-13 19:51:45 UTC
*** Bug 1268624 has been marked as a duplicate of this bug. ***

Comment 6 Tomas Mraz 2015-10-14 07:21:38 UTC
Yes, it is an expected behavior. If the display manager actually asked for the password only in case the PAM library calls the conversation function it would not ask for the password at all in this case. So notabug, at least not on the PAM side.