Ejemplo n.º 1
0
        void readInfoFromDsEntry(ICertConfigEntryD dsEntry)
        {
            ComputerName = dsEntry.ComputerName;
            Name         = dsEntry.CommonName;
            DisplayName  = dsEntry.DisplayName;
            ConfigString = dsEntry.ConfigString;

            if (dsEntry.WebEnrollmentServers != null)
            {
                EnrollmentEndpoints.AddRange(dsEntry.WebEnrollmentServers.Select(x => new PolicyEnrollEndpointUri(x)));
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Updates Enrollment Services URLs in the Active Directory.
        /// </summary>
        /// <exception cref="NotSupportedException">Enrollment Service URLs are not supported in workgroups.</exception>
        public void UpdateEnrollmentServiceUri()
        {
            if (String.IsNullOrEmpty(DistinguishedName))
            {
                throw new NotSupportedException("Enrollment Service URLs are not supported in workgroups.");
            }

            DsUtils.SetEntryProperty(DistinguishedName, DsUtils.PropPkiEnrollmentServers, EnrollmentEndpoints.DsEncode());
        }