Carl Stefan Grøtter a écrit : > Hello! > > I am actually trying to make a script that should browse through about > 150.000 objects and compare the data with another (Oracle based) > system. If I limit the search to e.g 5000 it works fine (takes about > 20-30 seconds), but without the limit it is using huge amounts of > memory and takes many, many hours. Therefore, I would like to rewrite > it to use paged results. I can't get it to work, though... > > I've been trying to modify several examples I found by googling, but I > allways seem to get all results on the first page. In the below > example (I am trying a more limited search here than I will do in the > real script, just to prove the concept to myself) I'm getting all 207 > users in the first page. > > Am I missing something obvious here? Could it be that SunOne directory > doesn't support paged controls? To check this, please search your RootDSE to see if the control 1.2.840.113556.1.4.319 is present. If not, this control is not provided by your LDAP server. If it is, good luck to find what's wrong in your script ;)
-- Clément OUDOT http://coudot.blogs.linagora.com