rustdesk / rustdesk/rustdesk-server-pro

Username not being updated correctly upon changing it in Entra/Azure

Open
#876 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Shell
Stars
317
Forks
119
PR merge metrics
No merged PRs in 30d

Description

Hello,

I noticed on our custom RustDesk client (Pro version), and also in the RustDesk admin web console, that the username was not being updated correctly, if the user account name is changed in a Windows environment.

Context/Environment:
  • We are deploying the custom client in a Microsoft Azure environment (Office 365) through Intune on all of the machines of our tenant. All machines are running Windows 11 Pro.

  • The users logged in on the Windows machines are all AzureAD (Entra) users. No local accounts.

  • Particular case: One user changed her last name a few months ago, even before we started deploying our custom RustDesk client on her computer. We updated her name on Entra, and it does show her new name properly in Windows. However, upon deploying the custom RustDesk client on her machine, her old name is being retrieved in the console instead, and also under the discovered device in our custom (admin) client.

  • We are using RustDesk Server Pro v1.7.5. The custom clients have been recompiled and re-deployed to also match the server version. So they are currently both up to date.

So it would appear that the way you retrieve the username, at least on Windows 11 machines, may not be entirely dynamic or too reliable.
Or perhaps this is a specific issue with AzureAD users? Couldn't you rely on the $env:username variable, or something along those lines? Or I'm sure the Windows API likely allows to fetch the currently logged in username, which we could rely on to get the username.

I'm also not entirely sure if you attempt to update/refresh the username in the RustDesk console/client periodically. But if not, that feature would be nice, as it would help admins keep track of up-to-date information.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the report on Windows 11 with an Entra/Azure user whose account name has changed, using the custom RustDesk client and admin web console. Trace how the username is retrieved and refreshed, then verify that the updated name appears in both the console and discovered-device view.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure
Domain
cloud, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.