From c1b792fec8283ab8232093aa05fcb2f3c1cd6c74 Mon Sep 17 00:00:00 2001 From: rvazarkar Date: Wed, 4 Oct 2023 17:31:59 -0400 Subject: [PATCH] chore: use ldap properties constants --- src/CommonLib/LDAPProperties.cs | 1 + src/CommonLib/LDAPQueries/CommonProperties.cs | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/CommonLib/LDAPProperties.cs b/src/CommonLib/LDAPProperties.cs index 868d49d0..29ab56b5 100644 --- a/src/CommonLib/LDAPProperties.cs +++ b/src/CommonLib/LDAPProperties.cs @@ -65,5 +65,6 @@ public static class LDAPProperties public const string CACertificate = "cacertificate"; public const string CertificateTemplates = "certificatetemplates"; public const string CrossCertificatePair = "crosscertificatepair"; + public const string Flags = "flags"; } } diff --git a/src/CommonLib/LDAPQueries/CommonProperties.cs b/src/CommonLib/LDAPQueries/CommonProperties.cs index 368d6a02..9e503b7e 100644 --- a/src/CommonLib/LDAPQueries/CommonProperties.cs +++ b/src/CommonLib/LDAPQueries/CommonProperties.cs @@ -80,11 +80,11 @@ public static class CommonProperties public static readonly string[] CertAbuseProps = { - "certificateTemplates", "flags", "dnshostname", "cacertificate", "mspki-certificate-name-flag", - "mspki-enrollment-flag", "displayname", "name", "mspki-template-schema-version", "mspki-cert-template-oid", - "pKIOverlapPeriod", "pKIExpirationPeriod", "pkiextendedkeyusage", "mspki-ra-signature", - "mspki-ra-application-policies", "mspki-ra-policies", "crosscertificatepair", - "mspki-certificate-application-policy" + LDAPProperties.CertificateTemplates, LDAPProperties.Flags, LDAPProperties.DNSHostName, LDAPProperties.CACertificate, LDAPProperties.PKINameFlag, + LDAPProperties.PKIEnrollmentFlag, LDAPProperties.DisplayName, LDAPProperties.Name, LDAPProperties.TemplateSchemaVersion, LDAPProperties.CertTemplateOID, + LDAPProperties.PKIOverlappedPeriod, LDAPProperties.PKIExpirationPeriod, LDAPProperties.ExtendedKeyUsage, LDAPProperties.NumSignaturesRequired, + LDAPProperties.CertificateApplicationPolicy, LDAPProperties.IssuancePolicies, LDAPProperties.CrossCertificatePair, + LDAPProperties.ApplicationPolicies }; } } \ No newline at end of file