LDAP module patch (adding new functionality).

php.internals

Ignacio Arenaza

20 years ago
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

Sara Golemon

20 years ago
Attachments have a habbit of getting filtered out (as they did this time), can you post them online somewhere with a link? Changing the file ext to .txt usually works too... -Sara ----- Original Message ----- From: "Ignacio Arenaza" <iarenuno@eteo.mondragon.edu> Newsgroups: php.internals To: "Stig Venaas" <venaas@php.net> Cc: <internals@lists.php.net>; <iarenaza@escomposlinux.org> Sent: Tuesday, October 11, 2005 2:47 PM Subject: LDAP module patch (adding new functionality).

Stig Venaas

20 years ago
I guess I'm still listed as maintainer of the LDAP module (and due to that this was copied to me). There's been some other requests for changes this year as well that I haven't responded to. I realize now that I really don't have time to maintain this, not much PHP work at all I'm afraid (it's a long time since I committed anything). Could we please find a new maintainer for the LDAP module? Perhaps one of the other module authors? Stig