Scenario: Active Directory
username search should return results against a search item (i.e. Firstname or Surname). There are 6 countries that are setup as different organizational units for AD accounts. e.g. UK (OU= UK), France (OU = FR). Now user should be displayed with a username which may belong to either OU=UK or OU=FR.
I am using PrincipalSearcher
from System.DirectoryServices.AccountManagement
library
PrincipalContext ctx = new PrincipalContext(ContextType.Domain, "myDomain",
"OU=UK,dc=comp,dc=com");
Problem: The above allows to return usernames which only belongs to OU=UK.
Question: How can I add multiple Organizational Units in PrincipalContext
.