Object not found when creating distributionlist fixed
This commit is contained in:
parent
0ba956b582
commit
da0966657b
2 changed files with 19 additions and 17 deletions
|
@ -1121,7 +1121,7 @@ namespace WebsitePanel.EnterpriseServer
|
||||||
{
|
{
|
||||||
return DataProvider.AddExchangeAccount(itemId, (int)accountType,
|
return DataProvider.AddExchangeAccount(itemId, (int)accountType,
|
||||||
accountName, displayName, primaryEmailAddress, mailEnabledPublicFolder,
|
accountName, displayName, primaryEmailAddress, mailEnabledPublicFolder,
|
||||||
mailboxManagerActions.ToString(), samAccountName, CryptoUtils.Encrypt(accountPassword), mailboxPlanId, subscriberNumber.Trim());
|
mailboxManagerActions.ToString(), samAccountName, CryptoUtils.Encrypt(accountPassword), mailboxPlanId, (string.IsNullOrEmpty(subscriberNumber) ? null : subscriberNumber.Trim()));
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void UpdateAccount(ExchangeAccount account)
|
private static void UpdateAccount(ExchangeAccount account)
|
||||||
|
|
|
@ -3431,6 +3431,8 @@ namespace WebsitePanel.Providers.HostedSolution
|
||||||
info.HideFromAddressBook =
|
info.HideFromAddressBook =
|
||||||
(bool)GetPSObjectProperty(distributionGroup, "HiddenFromAddressListsEnabled");
|
(bool)GetPSObjectProperty(distributionGroup, "HiddenFromAddressListsEnabled");
|
||||||
|
|
||||||
|
info.SAMAccountName = string.Format("{0}\\{1}", GetNETBIOSDomainName(), (string)GetPSObjectProperty(distributionGroup, "SamAccountName"));
|
||||||
|
|
||||||
cmd = new Command("Get-Group");
|
cmd = new Command("Get-Group");
|
||||||
cmd.Parameters.Add("Identity", accountName);
|
cmd.Parameters.Add("Identity", accountName);
|
||||||
result = ExecuteShellCommand(runSpace, cmd);
|
result = ExecuteShellCommand(runSpace, cmd);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue