<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>489898</bug_id>
          
          <creation_ts>2024-07-08 00:25:32 +0000</creation_ts>
          <short_desc>Bug/Enhancement: Use PAM failed login timeout or allow its configuration</short_desc>
          <delta_ts>2025-04-12 03:00:39 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Plasma</classification>
          <product>plasmashell</product>
          <component>Screen locking</component>
          <version>6.2.4</version>
          <rep_platform>Arch Linux</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>wishlist</bug_severity>
          <target_milestone>1.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Maxim">maxim.kukushkin</reporter>
          <assigned_to name="Plasma Bugs List">plasma-bugs-null</assigned_to>
          <cc>dev</cc>
    
    <cc>fernandommuniz</cc>
    
    <cc>nate</cc>
          
          <cf_commitlink>https://invent.kde.org/plasma/kscreenlocker/-/commit/081efa761f175ab87965771eef9629279164afee</cf_commitlink>
          <cf_versionfixedin>6.4.0</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2335632</commentid>
    <comment_count>0</comment_count>
    <who name="Maxim">maxim.kukushkin</who>
    <bug_when>2024-07-08 00:25:32 +0000</bug_when>
    <thetext>SUMMARY
Despite PAM configuration for not having a delay for failed logins (which is normal for local machines with no sensitive data), kscreenlocker still imposes a hardcoded ~3s timeout after entering incorrect password

STEPS TO REPRODUCE
1. Configure PAM with `nodelay` setting (specifically for pam_unix.so and pam_faillock.so)
2. Make sure the settings have been applied by trying an incorrect login in TTY 1-6
3. Lock the screen in KDE 6.1
4. Enter incorrect password

OBSERVED RESULT
There&apos;s a ~3s delay before the user is allowed to retry

EXPECTED RESULT
The next attempt must be allowed immediately as per the PAM settings

SOFTWARE/OS VERSIONS
Linux/KDE
(available in About System)
KDE Plasma Version: 6.1.2
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.2

ADDITIONAL INFORMATION
Having no delay between login attempts is user&apos;s choice that must be respected (not all machines contain sensitive data, some of them can be temporary virtual machines or some local devices that no one will ever bruteforce, or they are not critical even if compromised - it&apos;s admin&apos;s decision). PAM allow this setting, so should kscreenlocker.
kscreenlocker must either respect PAM&apos;s settings or expose its own setting for the failed login timeout so that the administrator can configure it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2348243</commentid>
    <comment_count>1</comment_count>
    <who name="restuccia">dev</who>
    <bug_when>2024-08-23 21:21:20 +0000</bug_when>
    <thetext>I can reproduce on my system:
Operating System: Fedora Linux 40
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Kernel Version: 6.10.5-200.fc40.x86_64 (64-bit)
Graphics Platform: Wayland

---

Apparently the delay is hardcoded, see https://forum.manjaro.org/t/kscreenlocker-wrong-password-delay/162677. As a temporary solution, one can modify it, but it will most likely revert at the next update. It should indeed be made configurable.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2386352</commentid>
    <comment_count>2</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2025-01-02 20:27:15 +0000</bug_when>
    <thetext>*** Bug 498135 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2393999</commentid>
    <comment_count>3</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2025-01-31 01:06:17 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/plasma/kscreenlocker/-/merge_requests/262</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2394000</commentid>
    <comment_count>4</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2025-01-31 01:07:04 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/2785</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2394001</commentid>
    <comment_count>5</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2025-01-31 01:08:20 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/5140</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2406478</commentid>
    <comment_count>6</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2025-03-10 19:20:27 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/2878</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2414356</commentid>
    <comment_count>7</comment_count>
    <who name="Akash Suresh">akashsrocks1234+kde</who>
    <bug_when>2025-04-09 15:12:12 +0000</bug_when>
    <thetext>Git commit 081efa761f175ab87965771eef9629279164afee by Akash Suresh, on behalf of Akash Suresh.
Committed on 09/04/2025 at 11:57.
Pushed by davidedmundson into branch &apos;master&apos;.

greeter: Add loginFailedDelayStarted event

- Add a loginFailedDelayStarted to track when we know that the login failed, but control is still with PAM.
- This event can replace the falsely named &quot;graceLockTimer&quot; in the lockscreen.
- Required for https://bugs.kde.org/show_bug.cgi?id=407473

M  +20   -5    greeter/pamauthenticator.cpp
M  +1    -0    greeter/pamauthenticator.h
M  +10   -0    greeter/pamauthenticators.cpp
M  +1    -0    greeter/pamauthenticators.h

https://invent.kde.org/plasma/kscreenlocker/-/commit/081efa761f175ab87965771eef9629279164afee</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>