Skip to content

Conversation

@siva1334
Copy link
Contributor

@siva1334 siva1334 commented Nov 28, 2024

Fixes #8472 which is raised by me.

@siva1334 siva1334 requested review from a team as code owners November 28, 2024 10:49
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Nov 28, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

directionless
directionless previously approved these changes Dec 1, 2024
directionless
directionless previously approved these changes Dec 1, 2024
@zwass zwass force-pushed the fix-windows-incorrect-SID-in-logged-in-users-table branch from 53fb7a0 to b56fef8 Compare December 17, 2024 18:46
@Smjert
Copy link
Member

Smjert commented Dec 17, 2024

@zwass The input of getSidFromAccountName is a std::wstring (so a UTF16 string), we should not convert the wtsSession->Domain and UserName to UTF8 (which is what wstringToString does), but construct a std::wstring.

I would suggest doing:

std::wstring domainUser = wtsSession->Domain;
domainUser += L"\\";
domainUser += wtsSession->UserName;

and then pass that.

@directionless directionless merged commit 5412e23 into osquery:master Dec 24, 2024
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect SID in logged_in_users table for Windows when Username and Domain/Device Name are the same

5 participants