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

Re: ldapsearch limit of 500 returned entries



Sending this back towards the list (hope you don't mind, Fox), because i
did 
track down another clue -- using the slapcat command (instead of
ldapsearch)
as root did return the full number of entries ( > 500 )in the directory
without 
an error.  Perhaps this is what the man page means -- i would still like
to
have this functionality for ldapsearch as well.  I guess it's time to
delve
into the source and see if i can find a place to set it and try
recompiling.

One other point of information -- before i added the 

SIZELIMIT	0 

to the three ldap.conf files (as i mentioned in the other message), none
of these
files previously had that variable set (it was commented out).  Just to
be totally
thorough (I was pretty certain it wouldn't work, but...) I set

SIZELIMIT	1000

just now and restarted, but i still get only 500 entries returned and
the same
error.

	~c

Fox wrote:
> 
> Not posting this to the list, but I imagine that contrary to what the man
> page says, the root user cannot override the server limit on entries
> returned.  I can't imagine root being able to magically override the server
> limit, especially considering ldapsearch is supposed to be a generic ldap
> client for any, including remote, ldap servers.
> 
> Fox
> 
> ----- Original Message -----
> From: "charlie derr" <cderr@simons-rock.edu>
> To: <openldap-software@OpenLDAP.org>
> Sent: Tuesday, June 04, 2002 2:10 PM
> Subject: ldapsearch limit of 500 returned entries
> 
> > I've looked in my ldap.conf and also in my slapd.conf, but i'm not
> > finding where this is set.  The following from the ldapsearch manpage:
> >
> >       -z sizelimit
> > retrieve at most sizelimit entries for a search.  A
> > sizelimit  of  0  (zero) removes the ldap.conf limit.
> > A server may impose a maximal sizelimit which
> > only the root user may override.
> >
> >
> > seems to indicate that i should be able to override, but
> > even when i use "-z 0" as root user on the machine that the
> > database lives on and bind as cn=admin, my output is 500 entries
> > followed by:
> >
> > # search result
> > search: 2
> > result: 4 Size limit exceeded
> >
> > # numResponses: 501
> > # numEntries: 500
> >
> >
> >
> > Do i have to recompile my slapd to get past this?  Or is there a
> > setting in a conf (or other) file somewhere that i can modify to
> > eliminate this error? 2.0.23
> >
> >
> > thanx so much in advance,
> > ~c