Exchange Shared and Resource mailboxes : Import.Enterprise fix
This commit is contained in:
parent
52a83bfa61
commit
b3b60fd3d7
1 changed files with 36 additions and 18 deletions
|
@ -780,25 +780,43 @@ namespace WebsitePanel.Import.Enterprise
|
||||||
return userId;
|
return userId;
|
||||||
}
|
}
|
||||||
int mailboxType = (int)type.Value;
|
int mailboxType = (int)type.Value;
|
||||||
|
|
||||||
|
PropertyValueCollection typeDetails = entry.Properties["msExchRecipientTypeDetails"];
|
||||||
|
int mailboxTypeDetails = 0;
|
||||||
|
if (typeDetails!=null)
|
||||||
|
{
|
||||||
|
if (typeDetails.Value != null)
|
||||||
|
mailboxTypeDetails = (int)typeDetails.Value;
|
||||||
|
}
|
||||||
|
|
||||||
ExchangeAccountType accountType = ExchangeAccountType.Undefined;
|
ExchangeAccountType accountType = ExchangeAccountType.Undefined;
|
||||||
switch (mailboxType)
|
|
||||||
{
|
if (mailboxTypeDetails == 4)
|
||||||
case 1073741824:
|
{
|
||||||
Log.WriteInfo("Account type : mailbox");
|
Log.WriteInfo("Account type : shared mailbox");
|
||||||
accountType = ExchangeAccountType.Mailbox;
|
accountType = ExchangeAccountType.SharedMailbox;
|
||||||
break;
|
}
|
||||||
case 7:
|
else
|
||||||
Log.WriteInfo("Account type : room");
|
{
|
||||||
accountType = ExchangeAccountType.Room;
|
switch (mailboxType)
|
||||||
break;
|
{
|
||||||
case 8:
|
case 1073741824:
|
||||||
Log.WriteInfo("Account type : equipment");
|
Log.WriteInfo("Account type : mailbox");
|
||||||
accountType = ExchangeAccountType.Equipment;
|
accountType = ExchangeAccountType.Mailbox;
|
||||||
break;
|
break;
|
||||||
default:
|
case 7:
|
||||||
Log.WriteInfo("Account type : unknown");
|
Log.WriteInfo("Account type : room");
|
||||||
return userId;
|
accountType = ExchangeAccountType.Room;
|
||||||
}
|
break;
|
||||||
|
case 8:
|
||||||
|
Log.WriteInfo("Account type : equipment");
|
||||||
|
accountType = ExchangeAccountType.Equipment;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
Log.WriteInfo("Account type : unknown");
|
||||||
|
return userId;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
UpdateExchangeAccount(userId, accountName, accountType, displayName, email, false, string.Empty, samName, string.Empty);
|
UpdateExchangeAccount(userId, accountName, accountType, displayName, email, false, string.Empty, samName, string.Empty);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue