Skip to content

Commit

Permalink
When reading computer properties ignore hosts not resolved to proper …
Browse files Browse the repository at this point in the history
…SIDs (#109)
  • Loading branch information
definitelynotagoblin authored Mar 14, 2024
1 parent 1ccdb77 commit d489c47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CommonLib/Processors/LDAPPropertyProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ public async Task<ComputerProperties> ReadComputerProperties(ISearchResultEntry
var hname = d.Contains("/") ? d.Split('/')[1] : d;
hname = hname.Split(':')[0];
var resolvedHost = await _utils.ResolveHostToSid(hname, domain);
if (resolvedHost != null && (resolvedHost.Contains(".") || resolvedHost.Contains("S-1")))
if (resolvedHost != null && resolvedHost.Contains("S-1"))
comps.Add(new TypedPrincipal
{
ObjectIdentifier = resolvedHost,
Expand Down

0 comments on commit d489c47

Please sign in to comment.