update functionallity for security groups
This commit is contained in:
parent
53dc8efa5d
commit
14e505a502
6 changed files with 311 additions and 9 deletions
|
@ -368,6 +368,14 @@ namespace WebsitePanel.Providers.HostedSolution
|
|||
group.Invoke("Add", user.Path);
|
||||
}
|
||||
|
||||
public static void RemoveUserFromGroup(string userPath, string groupPath)
|
||||
{
|
||||
DirectoryEntry user = new DirectoryEntry(userPath);
|
||||
DirectoryEntry group = new DirectoryEntry(groupPath);
|
||||
|
||||
group.Invoke("Remove", user.Path);
|
||||
}
|
||||
|
||||
public static bool AdObjectExists(string path)
|
||||
{
|
||||
return DirectoryEntry.Exists(path);
|
||||
|
|
|
@ -44,6 +44,10 @@ namespace WebsitePanel.Providers.HostedSolution
|
|||
|
||||
OrganizationSecurityGroup GetSecurityGroupGeneralSettings(string groupName, string organizationId);
|
||||
|
||||
void DeleteSecurityGroup(string groupName, string organizationId);
|
||||
|
||||
void SetSecurityGroupGeneralSettings(string organizationId, string groupName, string displayName, string managedBy, string[] memberAccounts, string notes);
|
||||
|
||||
void SetUserGeneralSettings(string organizationId, string accountName, string displayName, string password,
|
||||
bool hideFromAddressBook, bool disabled, bool locked, string firstName, string initials,
|
||||
string lastName,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue