M
Mario Rodriguez
Hi, I'm having big problems trying to include the < and > operator,
specifying the Filter property of the DirectorySearcher object.
For example, if the filter is :
string strFilter = "(&(objectCategory=user)(sAMAccountName<=bortiz))";
The query is executed successfully, but if the query is:
string strFilter = "(&(objectCategory=user)(sAMAccountName<bortiz))";
the following exception is raised:
{"The (&(objectCategory=user)(sAMAccountName<bortiz)) search filter is
invalid." } System.Exception
Any idea how to fix it?
thanks
specifying the Filter property of the DirectorySearcher object.
For example, if the filter is :
string strFilter = "(&(objectCategory=user)(sAMAccountName<=bortiz))";
The query is executed successfully, but if the query is:
string strFilter = "(&(objectCategory=user)(sAMAccountName<bortiz))";
the following exception is raised:
{"The (&(objectCategory=user)(sAMAccountName<bortiz)) search filter is
invalid." } System.Exception
Any idea how to fix it?
thanks