add security groups member of
This commit is contained in:
parent
7be09843de
commit
d742d6cfd2
12 changed files with 499 additions and 13 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue