From 5587b957baebffc46aee26250e0db08e8fa68b46 Mon Sep 17 00:00:00 2001 From: JonasBK Date: Mon, 29 Apr 2024 02:52:40 -0700 Subject: [PATCH] feat: collect unresolved published cert templates --- 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)