Bug #79187 [Com]: ldap_parse_result return error

From: Date: Mon, 22 Mar 2021 11:06:20 +0000
Subject: Bug #79187 [Com]: ldap_parse_result return error
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-232911@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=79187&edit=1 ID: 79187 Comment by: mcmic@php.net Reported by: angel dot castellanos at audisec dot es Summary: ldap_parse_result return error Status: Open Type: Bug Package: LDAP related Operating System: CentOS 7 PHP Version: 7.4.2 Block user comment: N Private report: N New Comment: Hello! From the RFC: «In the control returned to the client, the size MAY be set to the server's estimate of the total number of entries in the entire result set. Servers that cannot provide such an estimate MAY set this size to zero (0).» So it is expected that the size entry in the response control may be 0, even if there are entries in the result. Please do not use the same object to pass in the request control and to parse the response control. Previous Comments: ------------------------------------------------------------------------ [2020-01-29 07:14:02] angel dot castellanos at audisec dot es Description: ------------ --- From manual page: https://php.net/function.ldap-parse-result --- We are trying to implement the pagination in the ldap_search method after the ldap_control_paged_result_response() and ldap_control_paged_result() methods are deprecated using example number 5 that appears at https://doc.bccnsoft.com/docs/php-docs-7.4-en/ldap.examples-controls.html. When we use the ldap_parse_result method to extract the information from the result of ldap_search, we see that the $controls object has been updated and contains the correct cookie value, but the page size value appears as 0. Is this correct? Shouldn't it contain the page size value of the control that is used in ldap_search? Expected result: ---------------- The expected result is that the $controls object contains the page size used. Actual result: -------------- The current result is that the $ controls object contains page size 0. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=79187&edit=1

« previous php.bugs (#232911) next »