|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7791 ldap_search sizelimit parameter isn't working...
Submitted: 2000-11-13 14:34 UTC Modified: 2000-12-04 12:11 UTC
From: william at veritel dot com dot br Assigned:
Status: Closed Package: LDAP related
PHP Version: 4.0.3pl1 OS: Solaris 7
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.
Block user comment
Status: Assign to:
Bug Type:
From: william at veritel dot com dot br
New email:
PHP Version: OS:


 [2000-11-13 14:34 UTC] william at veritel dot com dot br
 if ($ds) {
     echo "Binding ...";
     $r=ldap_bind($ds);     // this is an "anonymous" bind, typically
                                     // read-only access
     echo "Bind result is ".$r."<p>";

     echo "Searching for ...";
     // Search surname entry
     $group = "ou=ClientAdmins, ou=Approved, ou=People,";
     $filter = "uid=*admin";
     $justthese = array( "uid", "cn", "mail");

     $sr = ldap_search($ds,$group,$filter,$justthese,0,10);   // BUGGED??? LINE 22

     echo "Search result is ".$sr."<p>";

Well, the code above is what I'm trying to do...the line commented should return only 10 entries from my ldap database, right??! Well it doesn't do! It brings me 500 and says about I'm trying to get more than 500 entries from LDAP. The error message follows:

> Connecting ...connect result is 1
> Binding ...Bind result is 1
> Searching for ...
> Warning: LDAP: Partial search results returned: Sizelimit exceeded. in /tests/php/ldap.php on line 22
> Unknown error
> Search result is 2
> Number of entires returned is 500
> Getting entries ...
> Data for 500 items returned:

It won't work setting the sixth parameter of ldap_search to more or less than 500.
Could it be a bug???


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2000-11-15 13:38 UTC]
Which ldap-library are you using? Openldap? Version?


 [2000-11-18 23:39 UTC]
User feedback:
At this time we're running Openldap v1.2.9. Problems with this one???

I just tried with PHP 4.0.3pl1 and Openldap 1.2.11. Works just fine for me.
Try updating your openldap libs. 


 [2000-12-04 12:11 UTC]
No feedback. 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jul 20 07:01:28 2024 UTC