Score:-1

Ubuntu 22.04 gnome remote desktop windows RDP username not set denying client

jp flag

I enabled the gnome-remote-desktop service and trying to connect from a windows machine. When I run the following command systemctl --user status gnome-remote-desktop.service I can see that the service is active and running. However, every time I try to connect the service throws out this error: Jun 04 11:20:04 <HOSTNAME> gnome-remote-de[13291]: [RDP] Username is not set, denying client

I have, obviously, set the username on the windows RDP client in the following fashion:enter image description here

The hostname is clearly correct and firewall is not an issue as the gnome-remote-desktop service is seeing the connection requests everytime it hit connect and throwing up this username not set message.

Score:1
wf flag

The message [RDP] Username is not set, denying client does not refer to the credentials on the client side, but the ones stored in the keyring on the server side.

The remote desktop panel in gnome-control-center sets the credentials in the keyring. Upon receiving a new connection, gnome-remote-desktop (g-r-d) reads those credentials and creates a SAM database, which is then provided to FreeRDP, where the actual authentication happens.

g-r-d emits the message [RDP] Username is not set, denying client when it read the credentials, received NULL from its API call, while no error is set.

This happens in two scenarios:

  1. The credentials are really not set (nothing could be found by the keyring daemon)
  2. The keyring is not unlocked. The keyring is encrypted with the users password. It is automatically unlocked, when the user logs in locally on the server side itself with their password, because then the user password is just forwarded to the login keyring, which is usually the default keyring.
    If you e.g. use autologin, no user password is entered and therefore the keyring cannot be unlocked, because no password is entered.
    You can unlock the keyring on the server side manually after autologon by e.g. starting searhorse (GUI for managing keyrings) first and opening the default keyring.
    Seahorse will then ask for the users password, which then unlocks the keyring.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.