Hi, I have modified the ldap module to be able to use Paged Results (see RFC 2696).
In order to do that, I have modified ldap_parse_result to provide the server controls to the user. This is where paged results control returned from the server are, specifically the cookie value. Without this value you can't do paged results at all. The values returned in this extension control are BER-encoded (see ITU's X.690 recommendation) so I have created two new functions that wrap around ber_printf() and ber_scanf(), to allow for the encodig/decoding of these values. I have tested these modifications with W2003 AD and OpenLDAP 2.1.x servers, using a linux PHP client linked with OpenLDAP libraries (I don't have access to neither Netscape's nor Oracle's libraries to test them). I have made diffs against current CVS versions (as of today, 2005.10.11, 23:15 CET DST) for PHP_4_4, PHP_5_0 and PHP_5_1 branches. I'm sending them attached (they are really small). I hope this could be added to the standard version of PHP in the near future. Thanks in advance for your time. Saludos. Iñaki. -- School of Management Mondragon University 20560 Oñati - Spain +34 943 718009 (ext. 225) GPG Key available at public keyservers
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php