Date: 11/15/00
- Next message: sniper <email protected>: "[PHP-DEV] PHP 4.0 Bug #7789 Updated: PDFLIB causes Core Dump"
- Previous message: Rasmus Lerdorf: "Re: [PHP-DEV] CVS Account Request"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 7791
Updated by: sniper
Reported By: william <email protected>
Status: Feedback
Bug Type: LDAP related
Assigned To:
Comments:
Which ldap-library are you using? Openldap? Version?
--Jani
Previous Comments:
---------------------------------------------------------------------------
[2000-11-13 14:34:46] william <email protected>
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, o=veritel.com.br";
$filter = "uid=*admin";
$justthese = array( "uid", "cn", "mail");
$sr = ldap_search($ds,$group,$filter,$justthese,0,10); // BUGGED??? LINE 22
ldap_error($ds);
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???
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=7791
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: sniper <email protected>: "[PHP-DEV] PHP 4.0 Bug #7789 Updated: PDFLIB causes Core Dump"
- Previous message: Rasmus Lerdorf: "Re: [PHP-DEV] CVS Account Request"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

