[Date Prev][Date Next]
Re: filter in shell backend
At 11:32 PM 11/4/00 +0100, firstname.lastname@example.org wrote:
>I have been writing a shell backend and recognized that filters should
>be implemented in the backend. At first I tried to figure out what
>other backends do to implement filters to implement them in my backend
>Later on I discovered that implementing filters in the shell-backend
>interface was quite simple. I simply had to add the filter to the
>parameter list of read_and_send_results() and put if( test_filter() )
>around send_search_entry() in result.c.
>Now my shell backend sends all entries to slapd in spite of filters and
>slapd applies them.
>It was so simple that I wonder if there is another reason that the
>shell backend interface was implemented that way.
Because that was the intended behavior.