php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27632 ldap_search sizelimit output error
Submitted: 2004-03-18 03:22 UTC Modified: 2004-03-18 08:48 UTC
From: jd at webkot dot be Assigned:
Status: Not a bug Package: LDAP related
PHP Version: 4.3.4 OS: FreeBSD 4.9
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: jd at webkot dot be
New email:
PHP Version: OS:

 

 [2004-03-18 03:22 UTC] jd at webkot dot be
Description:
------------
While making a search on LDAP using ldap_search, i got the following display message if I get too many results :

Warning: ldap_search(): Partial search results returned: Sizelimit exceeded

Nothing special but the problem is the
ldap_set_option($ds, LDAP_OPT_SIZELIMIT, 50); 
actually limit the number of search results but doesn't prevent to get the warning (I get the warning even with a limit of 1)

This is not the same bug as Bug #7791, the result limit WORKS but I get a warning message.

NB: I'm using openldap-client-2.1.27 


Reproduce code:
---------------
$ds=ldap_connect($ip);
ldap_set_option($ds, LDAP_OPT_SIZELIMIT, 50);
$ldapbind = ldap_bind($ds,$log,$pass);
$filter="(cn=*$criteria*)";
$result = ldap_search($ds, $roodn, $filter);

Expected result:
----------------
No Warning at all when LDAP_OPT_SIZELIMIT is set

Actual result:
--------------
Warning: ldap_search(): Partial search results returned: Sizelimit exceeded


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-03-18 08:48 UTC] iliaa@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

Without this warning the script author wouldn't know that 
there are more results avaliable. If it is common for your 
script to exceed the maximum allowed search result limit, 
simply block the error with '@'. 
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 01 16:01:31 2024 UTC