예제 #1
0
        private static void UpdateServiceDomain(DataTable dataTable, DataObjectStore store, string serviceName)
        {
            DataRow            row = dataTable.Rows[0];
            ADVirtualDirectory advirtualDirectory = (ADVirtualDirectory)store.GetDataObject(serviceName + "VirtualDirectory");

            if (advirtualDirectory != null && advirtualDirectory.ExternalUrl != null)
            {
                CertificateHelper.GetOneItem(row, serviceName + "ExternalDomain", advirtualDirectory.ExternalUrl.Host);
            }
            if (advirtualDirectory != null && advirtualDirectory.InternalUrl != null)
            {
                CertificateHelper.GetOneItem(row, serviceName + "InternalDomain", advirtualDirectory.InternalUrl.Host);
            }
        }
예제 #2
0
        public static void GetSDOPostAction(DataRow inputRow, DataTable table, DataObjectStore store)
        {
            DataRow dataRow = table.Rows[0];

            if (!DBNull.Value.Equals(dataRow["IsSelfSigned"]))
            {
                dataRow["CertType"] = (((bool)dataRow["IsSelfSigned"]) ? Strings.SelfSignedCertificate.ToString() : Strings.CASignedCertificate.ToString());
            }
            if (!DBNull.Value.Equals(dataRow["NotAfter"]))
            {
                dataRow["ExDTNotAfter"] = ((ExDateTime)((DateTime)dataRow["NotAfter"])).ToShortDateString();
            }
            CertificateHelper.TranslateStatusIntoShortDescription(dataRow);
        }
예제 #3
0
        public static void GetAutoDiscoverAcceptDomainPostAction(DataRow inputRow, DataTable dataTable, DataObjectStore store)
        {
            DataRow row        = dataTable.Rows[0];
            object  dataObject = store.GetDataObject("AcceptedDomainWholeObject");

            if (dataObject != null && dataObject is IEnumerable)
            {
                foreach (object obj in (dataObject as IEnumerable))
                {
                    Microsoft.Exchange.Data.Directory.SystemConfiguration.AcceptedDomain acceptedDomain = obj as Microsoft.Exchange.Data.Directory.SystemConfiguration.AcceptedDomain;
                    if (acceptedDomain != null)
                    {
                        CertificateHelper.GetOneItem(row, "AutoExternalDomain", "AutoDiscover." + acceptedDomain.DomainName.Domain);
                    }
                }
            }
        }
예제 #4
0
 public static void GetOWAVirtualDirectoryPostAction(DataRow inputRow, DataTable dataTable, DataObjectStore store)
 {
     CertificateHelper.UpdateServiceDomain(dataTable, store, "Owa");
 }
예제 #5
0
 public static void GetImapSettingsPostAction(DataRow inputRow, DataTable dataTable, DataObjectStore store)
 {
     CertificateHelper.UpdateConfigDomain(dataTable, store, "Imap");
 }