Skip to content

Commit

Permalink
feat: collect unresolved published cert templates
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasBK committed Apr 29, 2024
1 parent e2fc5a8 commit 5587b95
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 5587b95

Please sign in to comment.