Exchange2013 fix creating org public folders when creating organization
This commit is contained in:
parent
2c7d74505a
commit
d0af831436
1 changed files with 12 additions and 0 deletions
|
@ -5336,11 +5336,23 @@ namespace WebsitePanel.EnterpriseServer
|
||||||
|
|
||||||
// get mailbox settings
|
// get mailbox settings
|
||||||
int exchangeServiceId = GetExchangeServiceID(org.PackageId);
|
int exchangeServiceId = GetExchangeServiceID(org.PackageId);
|
||||||
|
|
||||||
|
if (exchangeServiceId <= 0)
|
||||||
|
return null;
|
||||||
|
|
||||||
ExchangeServer exchange = GetExchangeServer(exchangeServiceId, org.ServiceId);
|
ExchangeServer exchange = GetExchangeServer(exchangeServiceId, org.ServiceId);
|
||||||
|
|
||||||
if (exchange == null)
|
if (exchange == null)
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
|
//Create Exchange Organization
|
||||||
|
if (string.IsNullOrEmpty(org.GlobalAddressList))
|
||||||
|
{
|
||||||
|
ExtendToExchangeOrganization(ref org);
|
||||||
|
|
||||||
|
PackageController.UpdatePackageItem(org);
|
||||||
|
}
|
||||||
|
|
||||||
res = exchange.CreateOrganizationRootPublicFolder(org.OrganizationId, org.DistinguishedName, org.SecurityGroup, org.DefaultDomain);
|
res = exchange.CreateOrganizationRootPublicFolder(org.OrganizationId, org.DistinguishedName, org.SecurityGroup, org.DefaultDomain);
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue