This project has moved and is read-only. For the latest updates, please go here.

How to add search filters on inherited class

May 17, 2013 at 4:13 PM
Edited May 17, 2013 at 4:14 PM
Hi, this is a great project!!!
I'm using sample class MultipleLDAP and works great, my question is, how can I add filters to search?

May 21, 2013 at 12:17 PM
thanks for your feedback.
Can you please explain what exactly you mean with "filters"?
Do you mean on the LDAP query itself?
May 21, 2013 at 3:30 PM
Edited May 23, 2013 at 4:38 PM
Hi, Yes Yvan, a mean to add filters to the LDAP query.

Sergio Saavedra
May 23, 2013 at 10:33 AM
hello Sergio,
unfortunately DirectorySearcher object doesn't provide any way to easily add/remove criteria from filter.
So only way to customize the query is to manually edit the DirectorySearcher.Filter string, which is not going to be easy since you'll have to add characters at different locations (due to the structure of LDAP queries), and I'm not talking about the risks of editing a LDAP query as a plain string...