Bug 493153 - requestPassword: Failed to read password of "USER" because of error: 1
Summary: requestPassword: Failed to read password of "USER" because of error: 1
Status: REPORTED
Alias: None
Product: KRdp
Classification: Plasma
Component: general (show other bugs)
Version: 6.1.5
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-15 11:27 UTC by Diego Garcia
Modified: 2024-09-15 11:28 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Garcia 2024-09-15 11:27:29 UTC
SUMMARY
If I try to run krdp through the "Remote Desktop" settings on plasma after adding a username and password to the user list, trying to connect will just have the client constantly waiting for a connection. 
Running `krdp` directly through the terminal, setting a username and password through the -u and -p flags, doesn't have this issue.

STEPS TO REPRODUCE
1. Go to "Remote Desktop" in settings
2. Add a username and password, then enable service
3. Try to log in with said username and password

OBSERVED RESULT
Client will be stuck waiting for connection forever, journalctl logs show error `requestPassword: Failed to read password of  "USER"  because of error:  1`

EXPECTED RESULT
Client would connect to remote desktop successfully, as does happen when running `krdp` directly from the terminal, setting username and password through the `-u` and `-p` flags

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Kernel Version: 6.10.9-arch1-2 (64-bit)
Graphics Platform: Wayland
Processors: 12 × Intel® Core™ i7-8750H CPU @ 2.20GHz
Memory: 31.2 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 630

ADDITIONAL INFORMATION
Journalctl logs:
```
Sep 15 13:06:30 diego-arch systemd[840]: Starting KRDP Server...
Sep 15 13:06:30 diego-arch systemd[840]: Started KRDP Server.
Sep 15 13:06:31 diego-arch krdpserver[2847]: org.kde.krdp: Initializing Freedesktop Portal Session
Sep 15 13:06:31 diego-arch krdpserver[2847]: org.kde.krdp: Listening for connections on QHostAddress(QHostAddress::Any) 3389
Sep 15 13:06:31 diego-arch krdpserver[2847]: requestPassword: Failed to read password of  "ammonium"  because of error:  1
Sep 15 13:06:31 diego-arch krdpserver[2847]: org.kde.krdp: Started Freedesktop Portal session
Sep 15 13:06:31 diego-arch krdpserver[2847]: kpipewire_vaapi_logging: VAAPI: VA-API NVDEC driver [direct backend] in use for device "/dev/dri/renderD128"
Sep 15 13:06:34 diego-arch krdpserver[2847]: org.kde.krdp: Closing Freedesktop Portal Session
Sep 15 13:11:02 diego-arch krdpserver[2847]: org.kde.krdp: Initializing Freedesktop Portal Session
Sep 15 13:11:02 diego-arch krdpserver[2847]: org.kde.krdp: Session setup completed, start processing...
Sep 15 13:11:02 diego-arch krdpserver[2847]: org.kde.krdp: Started Freedesktop Portal session
Sep 15 13:11:08 diego-arch krdpserver[2847]: [13:11:08:006] [2847:3566] [WARN][com.winpr.negotiate] - AcceptSecurityContext status SEC_I_CONTINUE_NEEDED [0x00090312]
Sep 15 13:11:08 diego-arch krdpserver[2847]: [13:11:08:016] [2847:3566] [WARN][com.winpr.negotiate] - AcceptSecurityContext status SEC_I_COMPLETE_NEEDED [0x00090313]
Sep 15 13:11:08 diego-arch krdpserver[2847]: [13:11:08:016] [2847:3566] [ERROR][com.winpr.sspi.NTLM] - Error: Could not find user in SAM database
Sep 15 13:11:08 diego-arch krdpserver[2847]: [13:11:08:016] [2847:3566] [WARN][com.winpr.sspi] - CompleteAuthToken status SEC_E_INTERNAL_ERROR [0x80090304]
Sep 15 13:11:08 diego-arch krdpserver[2847]: [13:11:08:016] [2847:3566] [WARN][com.freerdp.core.nla] - CompleteAuthToken status SEC_E_INTERNAL_ERROR [0x80090304]
Sep 15 13:11:08 diego-arch krdpserver[2847]: [13:11:08:016] [2847:3566] [ERROR][com.freerdp.core.transport] - client authentication failure
Sep 15 13:11:08 diego-arch krdpserver[2847]: [13:11:08:016] [2847:3566] [ERROR][com.freerdp.core.peer] - peer_recv_callback: CONNECTION_STATE_INITIAL - rdp_server_accept_nego() fail
Sep 15 13:11:08 diego-arch krdpserver[2847]: [13:11:08:016] [2847:3566] [ERROR][com.freerdp.core.transport] - transport_check_fds: transport->ReceiveCallback() - -1
Sep 15 13:11:08 diego-arch krdpserver[2847]: org.kde.krdp: Unable to check file descriptor
Sep 15 13:11:08 diego-arch krdpserver[2847]: org.kde.krdp: Closing session
Sep 15 13:11:08 diego-arch krdpserver[2847]: org.kde.krdp: Closing Freedesktop Portal Session
```