private static void UpdateConfigDomain(DataTable dataTable, DataObjectStore store, string cfgName) { DataRow row = dataTable.Rows[0]; PopImapAdConfiguration popImapAdConfiguration = (PopImapAdConfiguration)store.GetDataObject(cfgName + "Configuration"); if (popImapAdConfiguration != null && !string.IsNullOrEmpty(popImapAdConfiguration.X509CertificateName)) { CertificateHelper.GetOneItem(row, cfgName + "Domain", popImapAdConfiguration.X509CertificateName); } }
public static void GetOutlookAnyWherePostAction(DataRow inputRow, DataTable dataTable, DataObjectStore store) { DataRow row = dataTable.Rows[0]; ADRpcHttpVirtualDirectory adrpcHttpVirtualDirectory = (ADRpcHttpVirtualDirectory)store.GetDataObject("RpcHttpVirtualDirectory"); if (adrpcHttpVirtualDirectory != null && adrpcHttpVirtualDirectory.ExternalHostname != null) { CertificateHelper.GetOneItem(row, "OutlookDomain", adrpcHttpVirtualDirectory.ExternalHostname.HostnameString); } }
public static void GetAutoDiscoverVirtualDirectoryPostAction(DataRow inputRow, DataTable dataTable, DataObjectStore store) { DataRow row = dataTable.Rows[0]; ClientAccessServer clientAccessServer = (ClientAccessServer)store.GetDataObject("ClientAccessServer"); if (clientAccessServer != null && clientAccessServer.AutoDiscoverServiceInternalUri != null) { CertificateHelper.GetOneItem(row, "AutoInternalDomain", clientAccessServer.AutoDiscoverServiceInternalUri.Host); } }
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); } }
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); } } } }