From 72721c2efbd87be6e6c32d4019634834b8f6b5cd Mon Sep 17 00:00:00 2001 From: JonasBK Date: Wed, 29 Nov 2023 03:49:00 -0800 Subject: [PATCH] fix: use correct constants for enterpriseca flags --- src/CommonLib/Processors/LDAPPropertyProcessor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CommonLib/Processors/LDAPPropertyProcessor.cs b/src/CommonLib/Processors/LDAPPropertyProcessor.cs index f27a0176..1fe66830 100644 --- a/src/CommonLib/Processors/LDAPPropertyProcessor.cs +++ b/src/CommonLib/Processors/LDAPPropertyProcessor.cs @@ -450,7 +450,7 @@ public static Dictionary ReadAIACAProperties(ISearchResultEntry public static Dictionary ReadEnterpriseCAProperties(ISearchResultEntry entry) { var props = GetCommonProps(entry); - if (entry.GetIntProperty("flags", out var flags)) props.Add("flags", (PKIEnrollmentFlag)flags); + if (entry.GetIntProperty("flags", out var flags)) props.Add("flags", (PKICertificateAuthorityFlags)flags); props.Add("caname", entry.GetProperty(LDAPProperties.Name)); props.Add("dnshostname", entry.GetProperty(LDAPProperties.DNSHostName));