wsp-10160 Exchange - Hosted Organization management - Accepted domain

InternalRelay -> AddressBookEnabled False
Authorative -> AddressBookEnabled True
This commit is contained in:
robvde 2013-08-04 07:11:18 +04:00
parent d9f3991978
commit 48f157de84

View file

@ -6430,6 +6430,7 @@ namespace WebsitePanel.Providers.HostedSolution
Command cmd = new Command("Set-AcceptedDomain"); Command cmd = new Command("Set-AcceptedDomain");
cmd.Parameters.Add("Identity", id); cmd.Parameters.Add("Identity", id);
cmd.Parameters.Add("DomainType", domainType.ToString()); cmd.Parameters.Add("DomainType", domainType.ToString());
cmd.Parameters.Add("AddressBookEnabled", !(domainType == ExchangeAcceptedDomainType.InternalRelay));
cmd.Parameters.Add("Confirm", false); cmd.Parameters.Add("Confirm", false);
ExecuteShellCommand(runSpace, cmd); ExecuteShellCommand(runSpace, cmd);
ExchangeLog.LogEnd("SetAcceptedDomainType"); ExchangeLog.LogEnd("SetAcceptedDomainType");