[Date Prev][Date Next] [Chronological] [Thread] [Top]

filter in shell backend



Hello

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
scripts.

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.

----------------------------------
E-Mail: torsten.foertsch@gmx.net
Date: 04-Nov-00
Time: 22:58:19
----------------------------------