From: Chad Fowler Date: 2003-04-11T19:56:54+09:00 Subject: Re: pb with ruby/ldap On Fri, 11 Apr 2003, Cedric Foll wrote: > Hi, > > i have to make a search on a quite big ldap database. > I'm using the libldap library for Ruby (v0.8) > > I make a search/search2 request on the databe but the result seem to big > too big and i get an error message: > ---- > $ ./get_email.rb < http.log > bind: Success > ../get_email.rb:14:in `search': Size limit exceeded (LDAP::ResultError) > ---- > How can i deal with that ? How can i split the request in few shorters > one. Hi, Cedric. This is most likely not a problem specific to Ruby/LDAP. Your LDAP server should have a search size parameter. The purpose of this parameter is to avoid large, unindexed queries against the database. If you have control over the LDAP server, one solution would be to index the attributes that you are attempting to query against. To verify that it isn't specifically a Ruby/LDAP problem you could try the same query using the ldapsearch command line tool. Hope this helps. Chad