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

Re: slapi_internal_search limits bug (ITS#3183)



m.d.t.evans@qmul.ac.uk wrote:

>Full_Name: Martin Evans
>Version: 2.2.12
>OS: Linux
>URL: ftp://ftp.openldap.org/incoming/slapi_search_limits-2.2.12.patch
>Submission from: (NULL) (138.37.7.247)
>
>
>I have a slapi pre-add operation plugin that calls the following slapi internal
>search function:
>
>    pb=slapi_search_internal( basedn,
>                              LDAP_SCOPE_ONELEVEL, 
>                              filter,
>                              NULL, NULL, 0 );
>
>The problem is that it rarely returns all the entries that it should.
>
>I had a quick looking bdb_do_search() and seems that the loop is exiting early
>because it is hitting an ldap search timelimit. The following patch disables the
>size and time limits in slapi_search_internal:
>  
>

The analysis is correct; the parameters of this internal search are not 
set appropriately.
I'm reviewing all the internal searches to make them comply with limits 
specifications,
expect a commit soon.  Thanks for reporting the problem.

p.




    SysNet - via Dossi,8 27100 Pavia Tel: +390382573859 Fax: +390382476497