Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/Runtime/ObjectProcessors.cs
Original file line number Diff line number Diff line change
Expand Up @@ -722,6 +722,7 @@ await compStatusChannel.Writer.WriteAsync(new CSVComputerStatus
var enrollmentAgentRestrictionsCollected = false;
var isUserSpecifiesSanEnabledCollected = false;
var roleSeparationEnabledCollected = false;
var disabledExtensionsCollected = false;
var caName = entry.GetProperty(LDAPProperties.Name);
var dnsHostName = entry.GetProperty(LDAPProperties.DNSHostName);
if (caName != null && dnsHostName != null) {
Expand All @@ -744,6 +745,7 @@ await compStatusChannel.Writer.WriteAsync(new CSVComputerStatus
EnrollmentAgentRestrictions = await _certAbuseProcessor.ProcessEAPermissions(caName,
resolvedSearchResult.Domain, dnsHostName, ret.HostingComputer),
RoleSeparationEnabled = _certAbuseProcessor.RoleSeparationEnabled(dnsHostName, caName),
DisabledExtensions = _certAbuseProcessor.DisabledExtensions(dnsHostName, caName),

// The CASecurity exist in the AD object DACL and in registry of the CA server. We prefer to use the values from registry as they are the ground truth.
// If changes are made on the CA server, registry and the AD object is updated. If changes are made directly on the AD object, the CA server registry is not updated.
Expand All @@ -755,6 +757,7 @@ await compStatusChannel.Writer.WriteAsync(new CSVComputerStatus
enrollmentAgentRestrictionsCollected = cARegistryData.EnrollmentAgentRestrictions.Collected;
isUserSpecifiesSanEnabledCollected = cARegistryData.IsUserSpecifiesSanEnabled.Collected;
roleSeparationEnabledCollected = cARegistryData.RoleSeparationEnabled.Collected;
disabledExtensionsCollected = cARegistryData.DisabledExtensions.Collected;
ret.CARegistryData = cARegistryData;
} else {
_log.LogWarning("The CA name or dnsHostname properties are null.");
Expand All @@ -764,6 +767,7 @@ await compStatusChannel.Writer.WriteAsync(new CSVComputerStatus
ret.Properties.Add("enrollmentagentrestrictionscollected", enrollmentAgentRestrictionsCollected);
ret.Properties.Add("isuserspecifiessanenabledcollected", isUserSpecifiesSanEnabledCollected);
ret.Properties.Add("roleseparationenabledcollected", roleSeparationEnabledCollected);
ret.Properties.Add("disabledextensionscollected", disabledExtensionsCollected);
}

return ret;
Expand Down