add security groups member of

This commit is contained in:
vfedosevich 2013-09-02 20:40:46 +03:00
parent 7be09843de
commit d742d6cfd2
12 changed files with 499 additions and 13 deletions

View file

@ -1048,11 +1048,11 @@ namespace WebsitePanel.Providers.HostedSolution
if (string.IsNullOrEmpty(groupName))
throw new ArgumentNullException("groupName");
string userPath = GetObjectPath(organizationId, accountName);
string objectPath = GetObjectPath(organizationId, accountName);
string groupPath = GetGroupPath(organizationId, groupName);
ActiveDirectoryUtils.AddObjectToGroup(userPath, groupPath);
ActiveDirectoryUtils.AddObjectToGroup(objectPath, groupPath);
}
public void DeleteObjectFromSecurityGroup(string organizationId, string accountName, string groupName)
@ -1076,11 +1076,11 @@ namespace WebsitePanel.Providers.HostedSolution
if (string.IsNullOrEmpty(groupName))
throw new ArgumentNullException("groupName");
string userPath = GetObjectPath(organizationId, accountName);
string objectPath = GetObjectPath(organizationId, accountName);
string groupPath = GetGroupPath(organizationId, groupName);
ActiveDirectoryUtils.RemoveObjectFromGroup(userPath, groupPath);
ActiveDirectoryUtils.RemoveObjectFromGroup(objectPath, groupPath);
}
#endregion
@ -1089,7 +1089,5 @@ namespace WebsitePanel.Providers.HostedSolution
{
return Environment.UserDomainName != Environment.MachineName;
}
}
}