From ede71765b0fd49b4c325aeffcda766a97a1db5ae Mon Sep 17 00:00:00 2001 From: rvazarkar Date: Fri, 30 Aug 2024 14:24:17 -0400 Subject: [PATCH] chore: some small fixes --- src/CommonLib/Processors/ComputerSessionProcessor.cs | 2 +- src/CommonLib/Processors/DomainTrustProcessor.cs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/CommonLib/Processors/ComputerSessionProcessor.cs b/src/CommonLib/Processors/ComputerSessionProcessor.cs index 2c9a4673..eb2f8546 100644 --- a/src/CommonLib/Processors/ComputerSessionProcessor.cs +++ b/src/CommonLib/Processors/ComputerSessionProcessor.cs @@ -231,7 +231,7 @@ await SendComputerStatus(new CSVComputerStatus { } //These are local computer accounts. - if (domain.Equals(computerSamAccountName, StringComparison.CurrentCultureIgnoreCase)) { + if (domain.Equals(computerSamAccountName, StringComparison.OrdinalIgnoreCase)) { continue; } diff --git a/src/CommonLib/Processors/DomainTrustProcessor.cs b/src/CommonLib/Processors/DomainTrustProcessor.cs index 1df373ec..fb1848c6 100644 --- a/src/CommonLib/Processors/DomainTrustProcessor.cs +++ b/src/CommonLib/Processors/DomainTrustProcessor.cs @@ -34,6 +34,7 @@ public async IAsyncEnumerable EnumerateDomainTrusts(string domain) })) { if (!result.IsSuccess) { + _log.LogWarning("Error during trust enumeration for domain {Domain}: {Error}", domain, result.Error); yield break; }