|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2018-10-03 17:27 UTC] asears at conestogawood dot com
[2018-11-01 07:47 UTC] heiglandreas@php.net
[2018-11-01 07:47 UTC] heiglandreas@php.net
-Assigned To:
+Assigned To: heiglandreas
[2018-11-01 13:49 UTC] asears at conestogawood dot com
[2019-06-10 20:10 UTC] asears at conestogawood dot com
[2019-06-11 14:59 UTC] cmb@php.net
-Status: Assigned
+Status: Closed
[2019-06-11 14:59 UTC] cmb@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 03:00:01 2025 UTC |
Description: ------------ Tha pagination control does not work as expected. The server I'm connecting to is a Windows 2012 AD DC which does support pagination, but the LDAP extension does not seem to properly support it? Test script: --------------- <?php $ldap = ldap_connect('dc.example.com'); ldap_set_option($ldap, LDAP_OPT_PROTOCOL_VERSION, 3); ldap_set_option($ldap, LDAP_OPT_X_TLS_REQUIRE_CERT, LDAP_OPT_X_TLS_ALLOW); ldap_start_tls($ldap); ldap_bind($ldap, 'user@example.com', 'password'); $cookie = ''; do { ldap_control_paged_result($ldap, 100, true, $cookie); $result = ldap_search($ldap, 'DC=example,DC=com', '(primaryGroupID=513)', ['ou', 'sn', 'givenname', 'mail']); $entries = ldap_get_entries($ldap, $result); foreach ($entries as $e) { echo $e['dn'] . PHP_EOL; } ldap_control_paged_result_response($ldap, $result, $cookie); } while($cookie !== null && $cookie != ''); Expected result: ---------------- All of the members of GID 513 (Domain Users) Actual result: -------------- Stops after the first page with warning: Warning: ldap_control_paged_result_response(): No server controls in result