fixed bugs

This commit is contained in:
vfedosevich 2013-09-03 14:24:08 +03:00
parent f11d00d4fa
commit 34af4912e8
5 changed files with 28 additions and 5 deletions

View file

@ -46,7 +46,12 @@ namespace WebsitePanel.Providers.HostedSolution
public static string[] GetGroupObjects(string group, string objectType)
{
List<string> rets = new List<string>();
return GetGroupObjects(group, objectType, null);
}
public static string[] GetGroupObjects(string group, string objectType, DirectoryEntry entry)
{
List<string> rets = new List<string>();
DirectorySearcher deSearch = new DirectorySearcher
{
@ -54,6 +59,11 @@ namespace WebsitePanel.Providers.HostedSolution
"(&(objectClass=" + objectType + "))"
};
if (entry != null)
{
deSearch.SearchRoot = entry;
}
SearchResultCollection srcObjects = deSearch.FindAll();
foreach (SearchResult srcObject in srcObjects)