This commit is contained in:
doctogonzo 2015-05-21 15:29:34 +02:00
commit 4b24f4fec9

View file

@ -285,10 +285,22 @@ namespace WebsitePanel.Import.Enterprise
case "group": case "group":
if (child.Properties["mail"] != null) if (child.Properties["mail"] != null)
email = (string)child.Properties["mail"].Value; email = (string)child.Properties["mail"].Value;
bool isDistributionList = false;
if ((typeProp != null) && (typeProp.Value != null) && (1073741833 == (int)typeProp.Value)) 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 //Universal Security Group
type = "Mail-Enabled Universal Security Group"; type = "Distribution List";
//email //email
PropertyValueCollection proxyAddresses = child.Properties["proxyAddresses"]; PropertyValueCollection proxyAddresses = child.Properties["proxyAddresses"];
if (proxyAddresses != null) if (proxyAddresses != null)