fixed bugs
This commit is contained in:
parent
f11d00d4fa
commit
34af4912e8
5 changed files with 28 additions and 5 deletions
|
@ -918,8 +918,11 @@ namespace WebsitePanel.Providers.HostedSolution
|
|||
throw new ArgumentNullException("groupName");
|
||||
|
||||
string path = GetGroupPath(organizationId, groupName);
|
||||
string organizationPath = GetOrganizationPath(organizationId);
|
||||
|
||||
DirectoryEntry entry = ActiveDirectoryUtils.GetADObject(path);
|
||||
DirectoryEntry organizationEntry = ActiveDirectoryUtils.GetADObject(organizationPath);
|
||||
|
||||
|
||||
OrganizationSecurityGroup securityGroup = new OrganizationSecurityGroup();
|
||||
|
||||
|
@ -930,7 +933,7 @@ namespace WebsitePanel.Providers.HostedSolution
|
|||
|
||||
List<ExchangeAccount> members = new List<ExchangeAccount>();
|
||||
|
||||
foreach (string userPath in ActiveDirectoryUtils.GetGroupObjects(groupName, "user"))
|
||||
foreach (string userPath in ActiveDirectoryUtils.GetGroupObjects(groupName, "user", organizationEntry))
|
||||
{
|
||||
OrganizationUser tmpUser = GetUser(userPath);
|
||||
|
||||
|
@ -941,7 +944,7 @@ namespace WebsitePanel.Providers.HostedSolution
|
|||
});
|
||||
}
|
||||
|
||||
foreach (string groupPath in ActiveDirectoryUtils.GetGroupObjects(groupName, "group"))
|
||||
foreach (string groupPath in ActiveDirectoryUtils.GetGroupObjects(groupName, "group", organizationEntry))
|
||||
{
|
||||
DirectoryEntry groupEntry = ActiveDirectoryUtils.GetADObject(groupPath);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue