mirror of
https://github.com/amidaware/tacticalrmm.git
synced 2026-04-26 06:55:52 +03:00
[GH-ISSUE #915] Incorrect Logged In User Is Displayed #2508
Labels
No labels
In Process
bug
bug
dev-triage
documentation
duplicate
enhancement
fixed
good first issue
help wanted
integration
invalid
pull-request
question
requires agent update
security
ui tweak
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tacticalrmm#2508
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @bc24fl on GitHub (Jan 3, 2022).
Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/915
Originally assigned to: @wh1te909 on GitHub.
Tactical RMM v0.10.5
Agent 1.7.2
Describe the bug
When multiple users are logged into a Windows workstation it appears that Tactical does not distinguish between a disconnected or active user. In this case (see notes below) it grabbed the first user to log in and displays it.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Tactical should default to displaying the active user if it's available not necessarily the first logged in user.
Additional context Discord Troubleshooting
bc24fl — Today at 12:10 PM
In the past the refresh button next to the Tactical RMM logo used to refresh the screen with new data but no longer works. Logged in user no longer changes even though a new user is logged in. Wanted to confirm before opening a bug report.
[12:12 PM]
It does work for some things like agent online/offline (edited)
[12:12 PM]
but not for logged in user
@bc24fl
In the past the refresh button next to the Tactical RMM logo used to refresh the screen with new data but no longer works. Logged in user no longer changes even though a new user is logged in. Wanted to confirm before opening a bug report.
silversword — Today at 12:12 PM
...re-check to see what you're expecting (agent online/script run etc) actually happened. You used to have to refresh constantly but I think wh1te did some tweaking to make everything refresh on clicking anything. Check commit logs (edited)
[12:13 PM]
#BetterFasterAdminInterface
wh1te909 — Today at 12:13 PM
the logged in user is not realtime
@wh1te909
the logged in user is not realtime
bc24fl — Today at 12:14 PM
It used to be
[12:19 PM]
So generally I'll get a call, and the user tells me their username which I'll use to find what computer they're logged into so I can remote in..
wh1te909 — Today at 12:19 PM
yea it was never real time. when refreshing the dashboard yes it does pull latest info from the database, but logged in user specifically will be sent to the rmm every 200 to 400 seconds (random) so could be db is not updated yet until that interval. this was old design decision. now that ive reworked how agents check in and it uses way less bandwidth and resources we can add more realtime stuff. so i would open PR for what you want updated in realtime
bc24fl — Today at 12:20 PM
It's been at least 2 hours and it hasn't yet updated.
wh1te909 — Today at 12:21 PM
in the meantime, if you want to force a check-in, you can use the refresh button on the summary tab and then refresh the dashboard
bc24fl — Today at 12:21 PM
k let me try
[12:22 PM]
I saw it refreshed but the logged in user is still the same
[12:23 PM]
This user logged in around 6am and it is now 12:30 but the dashboard hasn't reflected it yet?
wh1te909 — Today at 12:25 PM
can you run tacticalrmm.exe -m checkin -log debug -logto stdout its gonna print a ton of info ignore the stuff at the bottom, scroll to the top and you should see the agent id, hostname etc and shoudl also see there the logged in user. or just send me that maybe its having trouble getting user
[12:27 PM]
can also omit the logto stdout and it will log to the agent.log file in program files\tacticalagent if easier (edited)
bc24fl — Today at 12:28 PM
I have the agent id
[12:29 PM]
Oh yeah logged in user is there too but is the old user
[12:31 PM]
Checked Chrome Dev tools and it too is reporting the wrong (old) user
[12:31 PM]
Clicked on the detail and same old user
wh1te909 — Today at 12:33 PM
are there multiple users logged in? is old user still logged in maybe via rdp but disconnected?
bc24fl — Today at 12:34 PM
Good point let me find out
bc24fl — Today at 12:42 PM
It's showing 2 users 1 active and 1 disconnected. TRMM is showing the disconnected instead of the active.
[12:42 PM]
query user /server:$SERVER
[12:42 PM]
lists all users
[12:43 PM]
from that list I grabbed the disconnected user session id and ran
[12:43 PM]
logout 1
[12:43 PM]
then refreshed TRMM in the summary tab
[12:43 PM]
and now it show correctly
wh1te909 — Today at 12:43 PM
that makes sense. the agent currently doesn't have any logic to deal with multiple users. it just lists users and grabs the first one
bc24fl — Today at 12:44 PM
BTW, this is a Win10 box not RDP server. Users will switch to another user and log themselves in.
dinger1986 — Today at 12:45 PM
I think they are the first user to login
[12:45 PM]
I have seen it before as well
bc24fl — Today at 12:46 PM
I think what i'll do is write a script to search for all disconnected users and just log them out. Then run that when I can't find a user
wh1te909 — Today at 12:46 PM
i would open a bug report on github just for tracking so i can eventually get the actual logged in user not just whatever happens to come first
bc24fl — Today at 12:47 PM
correct. will do