Skip to content

Commit

Permalink
feat: collect unresolved published cert templates (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasBK authored May 3, 2024
1 parent 99006cf commit ff7974c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Runtime/ObjectProcessors.cs
Original file line number Diff line number Diff line change
Expand Up @@ -619,8 +619,10 @@ private async Task<EnterpriseCA> ProcessEnterpriseCA(ISearchResultEntry entry, R
var props = LDAPPropertyProcessor.ReadEnterpriseCAProperties(entry);
ret.Properties.Merge(props);

// Enabled cert templates
ret.EnabledCertTemplates = _certAbuseProcessor.ProcessCertTemplates(entry.GetArrayProperty(LDAPProperties.CertificateTemplates), resolvedSearchResult.Domain).ToArray();
// Enabled/published cert templates
(IEnumerable<TypedPrincipal> resolvedTemplates, IEnumerable<string> unresolvedTemplates) = _certAbuseProcessor.ProcessCertTemplates(entry.GetArrayProperty(LDAPProperties.CertificateTemplates), resolvedSearchResult.Domain);
ret.EnabledCertTemplates = resolvedTemplates.ToArray();
ret.Properties.Add("unresolvedpublishedtemplates", unresolvedTemplates.ToArray());
}

if ((_methods & ResolvedCollectionMethod.Container) != 0 || (_methods & ResolvedCollectionMethod.CertServices) != 0)
Expand Down

0 comments on commit ff7974c

Please sign in to comment.