From 42f5f3bbf6ba0a55b9cdb813b0921cdd8659ddef Mon Sep 17 00:00:00 2001 From: dev_amdtel Date: Thu, 21 May 2015 12:53:30 +0300 Subject: [PATCH] fix WebsitePanel.Import.Enterprise --- .../ApplicationForm.cs | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/WebsitePanel/Sources/Tools/WebsitePanel.Import.Enterprise/ApplicationForm.cs b/WebsitePanel/Sources/Tools/WebsitePanel.Import.Enterprise/ApplicationForm.cs index fda8ddab..b3234f0f 100644 --- a/WebsitePanel/Sources/Tools/WebsitePanel.Import.Enterprise/ApplicationForm.cs +++ b/WebsitePanel/Sources/Tools/WebsitePanel.Import.Enterprise/ApplicationForm.cs @@ -285,10 +285,22 @@ namespace WebsitePanel.Import.Enterprise case "group": if (child.Properties["mail"] != null) email = (string)child.Properties["mail"].Value; - if ((typeProp != null) && (typeProp.Value != null) && (1073741833 == (int)typeProp.Value)) + + bool isDistributionList = false; + + if ((typeProp != null) && (typeProp.Value != null) && (1073741833 == (int)typeProp.Value)) + isDistributionList = true; + + if (typeDetails == 262144) + isDistributionList = true; + + if (typeDetails == 0) + isDistributionList = true; + + if (isDistributionList) { //Universal Security Group - type = "Mail-Enabled Universal Security Group"; + type = "Distribution List"; //email PropertyValueCollection proxyAddresses = child.Properties["proxyAddresses"]; if (proxyAddresses != null)