I have a domain which branches. I would like to do a search at the parent of these branches which includes both subtree OUs. Here is the path OU=JAT1,OU=BIT,OU=RO,DC=TAM,DC=RA,DC=ncd and there is JAT2. I have an IsEnabled function which returns 0 or 1, depending on if the person is enabled or disabled. I give the function the first and last name of a person and so it checks. But it won't check the subtree even though the searchscope is subtree. What do I do to get the searcher to include names in the lower branches? Here is my function. So how do I include JAT1 OR JAT2 in the search?
Dim domain_2 As DirectoryEntry = Nothing
Dim domstring As String = "LDAP://CN=" & myname & ",OU=BIT,OU=RO,DC=TAM,DC=RA,DC=NCD"
domain_2 = New DirectoryEntry(Trim(domstring), "mydomain\myID", "password")
Dim ds As New ...
Go to the complete details ...