How to ask the 'DirectoryEntry' instance to find exclusively users according to ldap path?

Oct 21, 2015 at 4:32 PM
Edited Oct 21, 2015 at 4:32 PM

Using 'DirectoryEntry' I'm facing the issue that it seems that the users returned by the picker are not those belonging exclusively to the targeted 'OU'.

Is there any property like 'exclusive' or else... helping this object to be strict with the path given?

Thank you.


DirectoryEntry de = new DirectoryEntry();
de.Path = "LDAP://DC=dev,DC=entsoe,DC=local";
de.AuthenticationType = AuthenticationTypes.Secure;
return new DirectoryEntry[] { de };
Marked as answer by csiefers on 10/30/2015 at 1:59 AM