#32097 [Opn->Bgs]: Larger search limit for ldap_search
| From: | jani@php.net | Date: | Sat, 06 Oct 2007 02:18:23 +0000 |
| Subject: | #32097 [Opn->Bgs]: Larger search limit for ldap_search | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-118247@lists.php.net to get a copy of this message | ||
ID: 32097
Updated by: jani@php.net
Reported By: stasinia at msoe dot edu
-Status: Open
+Status: Bogus
Bug Type: Feature/Change Request
Operating System: Windows
PHP Version: 5.0.3 & 5.0.4
New Comment:
resource ldap_search ( resource $link_identifier, string $base_dn,
string $filter [, array $attributes [, int $attrsonly [, int $sizelimit
[, int $timelimit [, int $deref]]]]] )
As you can see there is sizelimit parameter already.
There's just one catch: It can only limit up to the server side limit.
ie. If the max search results is set to 2000 on the server, you can't
set higher limit on the client side. This is not PHP problem but a
configuration issue on the server you access.
Previous Comments:
------------------------------------------------------------------------
[2005-05-23 19:10:23] stasinia at msoe dot edu
This is a bump. I had hoped that 5.0.4 would have fixed this problem,
looks like it has not. It really should not be that much of a problem
to just change one line in the LDAP library code prior to compile.
------------------------------------------------------------------------
[2005-02-24 19:10:02] stasinia at msoe dot edu
Description:
------------
ldap_search is limited to a max of 2000 results. I do alot of work
with AD that would greatly help if that limit was increased to at least
10,000, idealy 20,000 (so I can search the entire directory). You can
leave the default value at 2,000, just change the hard coded limit in
the LDAP library.
Thank you in advance.
Reproduce code:
---------------
ldap_search ($connection, $basedn, $SearchWith>2000Results)
Expected result:
----------------
2000+ results
Actual result:
--------------
Error messsage about not complete results.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=32097&edit=1