From ff7974c0bb6c32450520494aab0a0710b3186af9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20B=C3=BClow=20Knudsen?= <12843299+JonasBK@users.noreply.github.com> Date: Fri, 3 May 2024 07:04:15 -0700 Subject: [PATCH] feat: collect unresolved published cert templates (#98) --- src/Runtime/ObjectProcessors.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Runtime/ObjectProcessors.cs b/src/Runtime/ObjectProcessors.cs index ae9779b..b005186 100644 --- a/src/Runtime/ObjectProcessors.cs +++ b/src/Runtime/ObjectProcessors.cs @@ -619,8 +619,10 @@ private async Task 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 resolvedTemplates, IEnumerable 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)