Skip to content

Commit

Permalink
fix: don't collect unresolved computer objects for AllowedToDelegate
Browse files Browse the repository at this point in the history
  • Loading branch information
rvazarkar committed Nov 3, 2022
1 parent 8defc94 commit 16a676b
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 @@ -198,7 +198,7 @@ public async Task<UserProperties> ReadUserProperties(ISearchResultEntry entry)
continue;

var resolvedHost = await _utils.ResolveHostToSid(d, 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 16a676b

Please sign in to comment.