update functionallity for security groups
This commit is contained in:
parent
14e505a502
commit
52cf12187f
18 changed files with 1849 additions and 979 deletions
|
@ -349,6 +349,11 @@ namespace WebsitePanel.Providers.HostedSolution
|
|||
}
|
||||
|
||||
public static void CreateGroup(string path, string group)
|
||||
{
|
||||
CreateGroup(path, group, "");
|
||||
}
|
||||
|
||||
public static void CreateGroup(string path, string group, string manager)
|
||||
{
|
||||
DirectoryEntry currentADObject = new DirectoryEntry(path);
|
||||
|
||||
|
@ -357,6 +362,12 @@ namespace WebsitePanel.Providers.HostedSolution
|
|||
newGroupObject.Properties[ADAttributes.SAMAccountName].Add(group);
|
||||
|
||||
newGroupObject.Properties[ADAttributes.GroupType].Add(-2147483640);
|
||||
|
||||
if (!string.IsNullOrEmpty(manager))
|
||||
{
|
||||
newGroupObject.Properties[ADAttributes.Manager].Add(manager);
|
||||
}
|
||||
|
||||
newGroupObject.CommitChanges();
|
||||
}
|
||||
|
||||
|
|
|
@ -37,7 +37,8 @@ namespace WebsitePanel.Providers.HostedSolution
|
|||
PublicFolder = 4,
|
||||
Room = 5,
|
||||
Equipment = 6,
|
||||
User = 7
|
||||
User = 7,
|
||||
SecurityGroup = 8
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -42,6 +42,8 @@ namespace WebsitePanel.Providers.HostedSolution
|
|||
|
||||
OrganizationUser GetUserGeneralSettings(string loginName, string organizationId);
|
||||
|
||||
int CreateSecurityGroup(string organizationId, string groupName, string displayName, string managedBy);
|
||||
|
||||
OrganizationSecurityGroup GetSecurityGroupGeneralSettings(string groupName, string organizationId);
|
||||
|
||||
void DeleteSecurityGroup(string groupName, string organizationId);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue