php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #32097 Larger search limit for ldap_search
Submitted: 2005-02-24 19:10 UTC Modified: 2007-10-06 02:18 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: stasinia at msoe dot edu Assigned:
Status: Not a bug Package: Feature/Change Request
PHP Version: 5.0.3 & 5.0.4 OS: Windows
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: stasinia at msoe dot edu
New email:
PHP Version: OS:

 

 [2005-02-24 19:10 UTC] 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-05-23 19:10 UTC] 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.
 [2007-10-06 02:18 UTC] jani@php.net
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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jun 01 08:01:32 2024 UTC