From: Francis Cianfrocca Date: 2007-08-22T12:56:11+09:00 Subject: Re: ruby-ldap and paged results on windows ------=_Part_16969_13639257.1187754971197 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On 8/21/07, Dave King wrote: > > Hi- > I'm trying to get paged results to work with ruby-ldap against > Active Directory in Windows. I compiled ruby-ldap 0.9.7 following the > directions on > http://www.turnofthecrank.com/2006/09/11/ruby-ldap-and-win32/ > > Then I tried to run this code I found. The error I get is that ruby > can't find the constant LDAP_CONTROL_PAGEDRESULTS and if I put > LDAP.constants it's not listed. Any ideas? The literal value of the control is "1.2.840.113556.1.4.319" You might try defining that in your code and see if it works. (If you have sharp eyes you'll notice that the enterprise number in the OID belongs to Microsoft. Paged controls started life as a hack to make Active Directory performance slightly less horrible.) If you're still having trouble, try the Net::LDAP library. It supports paged results transparently. ------=_Part_16969_13639257.1187754971197--