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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue