Merge
This commit is contained in:
commit
7689703a9b
7 changed files with 65 additions and 9 deletions
|
@ -3796,7 +3796,25 @@ namespace WebsitePanel.Providers.HostedSolution
|
|||
id = GetPSObjectIdentity(obj);
|
||||
account = GetExchangeAccount(runSpace, id);
|
||||
if (account != null)
|
||||
{
|
||||
list.Add(account);
|
||||
}
|
||||
else
|
||||
{
|
||||
string distinguishedName = (string)GetPSObjectProperty(obj, "DistinguishedName");
|
||||
string path = ActiveDirectoryUtils.AddADPrefix(distinguishedName, PrimaryDomainController);
|
||||
|
||||
if (ActiveDirectoryUtils.AdObjectExists(path))
|
||||
{
|
||||
DirectoryEntry entry = ActiveDirectoryUtils.GetADObject(path);
|
||||
|
||||
list.Add(new ExchangeAccount
|
||||
{
|
||||
AccountName = ActiveDirectoryUtils.GetADObjectStringProperty(entry, ADAttributes.SAMAccountName),
|
||||
AccountType = ExchangeAccountType.SecurityGroup
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
ExchangeLog.LogEnd("GetGroupMembers");
|
||||
return list.ToArray();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue