ruby-net-ldap icon indicating copy to clipboard operation
ruby-net-ldap copied to clipboard

Ability to control paging

Open halostatue opened this issue 12 years ago • 1 comments

Originally submitted by James Hewitt (jamstah) on 2009-01-06:

I would like to be able to not send the paging control, because it can cause access errors on some servers.

It would be good to be able to specify a paging size, to work with tricky servers.

It would be great to be able to control the use of paging:

LDAP.open do |ldap|
  cookie = ldap.search( { paging: 10, options... } ) do |entry|
    handle entries...
  end

  ldap.search( cookie ) do |entry|
    handle next 10...
  end

  ldap.cancel( cookie )
end

But that might be best as another feature request, and a different function name (paged_search), and probably with exception raising for the server returning a non-zero response.

halostatue avatar Jul 12 '11 16:07 halostatue

I agree with not defaulting to paging. It's an extension to the LDAP spec, not a core requirement. It should not be assumed.

jch avatar Oct 31 '14 20:10 jch