Skip to content

Commit

Permalink
chore: remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
rvazarkar committed Jul 29, 2024
1 parent 7de6c48 commit d45e1b1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Runtime/ObjectProcessors.cs
Original file line number Diff line number Diff line change
Expand Up @@ -583,11 +583,7 @@ private async Task<EnterpriseCA> ProcessEnterpriseCA(IDirectoryObject entry,
if (await _context.LDAPUtils.ResolveHostToSid(dnsHostName, resolvedSearchResult.DomainSid) is
(true, var sid) && sid.StartsWith("S-1-")) {
ret.HostingComputer = sid;
}

// If ResolveHostToSid does not return a valid SID, we don't want to record this host
if (ret.HostingComputer != null && !ret.HostingComputer.StartsWith("S-1-")) {
ret.HostingComputer = null;
} else {
_log.LogWarning("CA {Name} host ({Dns}) could not be resolved to a SID.", caName, dnsHostName);
}

Expand Down

0 comments on commit d45e1b1

Please sign in to comment.