Note. Calling slapi_str2entry() modifies the value of the string argument passed
into the function. If you still want to use the string representation of the entry,
make a copy of the string before calling this function.
Search filters can be represented by the datatype Slapi_Filter or as strings. (In a parameter block for a search operation, SLAPI_SEARCH_FILTER is a filter of the datatype Slapi_Filter, and SLAPI_SEARCH_STRFILTER is the string representation of that filter.) In general, it is easier to specify a filter as a string than to construct a filter of the type Slapi_Filter.