Repository navigation
Commit 5e8a54d
committed
fix: use SID comparison in is_process_user() for UPN support
LookupAccountName resolves both UPN (user@domain.com) and DDL
(DOMAIN\user) to a SID, so the comparison correctly identifies
the same account regardless of format. Falls back to string
comparison if SID lookup fails.
Signed-off-by: Morgan Epp <60796713+epmog@users.noreply.github.com>1 parent 076b8bc commit 5e8a54d
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
65 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
66 | 76 | | |
67 | 77 | | |
68 | 78 | | |
| |||
0 commit comments