fixed bugs
This commit is contained in:
parent
f11d00d4fa
commit
34af4912e8
5 changed files with 28 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue