How to limit the number of entries got from ldap?(ldap_search)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



source code:
<?php
//$ds is a valid link identifier for a directory server

$dn = "o=My Company, c=US";
$filter="person=*";
$justthese = array("ou", "sn", "givenname", "mail");

$sr=ldap_search($ds, $dn, $filter, $justthese);
?>


It takes about 100 secs while the entries amount to more than 10,000.
Is there any solution to make it do fast?
Or is there any method to fetch 100 entries every time?

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux