Bug 498810

Summary: Unable to connect to remote Windows 10 when a domain name is required for authentication
Product: [Applications] krdc Reporter: Steffen W. <steffen-winkler>
Component: RDPAssignee: Urs Wolfer <uwolfer>
Status: RESOLVED FIXED    
Severity: normal CC: ctrlaltca
Priority: NOR    
Version First Reported In: 24.12.1   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Steffen W. 2025-01-17 16:52:37 UTC
I was previously using Remina to connect to a remote Windows 10 machine. Remina offers a screen with three textboxes: Username, Password and Domain. Connecting to the PC was possible utilizing all three textboxes. Even when logging in to the PC on site I need to specify the domain name and username in the Windows 10 login screen like so: MYDOMAIN\username otherwise I can't login.

Due to Remina not supporting a multi-screen environment on Wayland, I was looking at KRDC. Sadly I'm not even able to login here. The login screen KRDC provides does not offer a 'Domain' textbox and putting MYDOMAIN\username in the Username textbox results in this error: "Unable to login with the provided credentials. Please double check the user and password".

After some searching I've also tried several alterations like using one or two forward- and backward slashes.


STEPS TO REPRODUCE
1. Have a Microsoft Windows 10 machine set up to accept incoming RDP connections and have a valid login that utilizes a Microsoft  domain controller. Verify that login is possible from other Windows machines and/or other RDP clients like Remina.
2. Start KRDC and enter the IP address to connect to the address of the PC and press enter.
3. A login prompt appears, enter username and password. Feel free to try all kinds of variations like MYDOMAIN/username, MYDOMAIN//username, MYDOMAIN\username, MYDOMAIN\\username or just username and enter the correct password.


OBSERVED RESULT
An error message appears with the wording: "Unable to login with the provided credentials. Please double check the user and password".

EXPECTED RESULT
A connection to the Windows PC is established

SOFTWARE/OS VERSIONS
Windows: 10
Operating System: Arch Linux 
KDE Plasma Version: 6.2.5
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.1
Kernel Version: 6.12.9-arch1-1 (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION
Comment 1 Steffen W. 2025-01-29 10:23:58 UTC
Oh, forgot: FreeRDP version is freerdp2 2.11.7-2
Comment 2 Bug Janitor Service 2025-01-29 14:20:36 UTC
A possibly relevant merge request was started @ https://invent.kde.org/network/krdc/-/merge_requests/157
Comment 3 Steffen W. 2025-01-29 20:51:38 UTC
Compiled the branch with the commit, after swapping out the newly compiled krdc_rdpplugin.so in the plugin folder and starting the compiled krdc I was able to connect!
Comment 4 Fabio 2025-01-31 23:22:46 UTC
Thank you for confirming this works for you!
Comment 5 Fabio 2025-01-31 23:25:42 UTC
Git commit 1e97baa0e46311012cc5494d0ab17be85ee8ad05 by Fabio Bas.
Committed on 31/01/2025 at 23:23.
Pushed by ctrlaltca into branch 'master'.

Rdp: add support for domain field in authentication. Internally it's stored as a query parameter in the QUrl

M  +1    -0    rdp/rdpsession.cpp
M  +27   -2    rdp/rdpview.cpp
M  +2    -0    rdp/rdpview.h
M  +8    -0    rdp/rdpviewfactory.cpp

https://invent.kde.org/network/krdc/-/commit/1e97baa0e46311012cc5494d0ab17be85ee8ad05
Comment 6 Steffen W. 2025-02-03 10:41:50 UTC
Thank you for fixing it so quickly!
Comment 7 Steffen W. 2025-03-15 13:34:02 UTC
Do you have any knowledge when this fix will be released? I'm on version 24.12.3 now which was released on March 6th and this fix is still not in.
Comment 8 Fabio 2025-03-15 19:13:30 UTC
(In reply to Steffen W. from comment #7)
> Do you have any knowledge when this fix will be released? I'm on version
> 24.12.3 now which was released on March 6th and this fix is still not in.

https://community.kde.org/Schedules/KDE_Gear_25.04_Schedule