ldap_search sort extension, patch included
| From: | Andre Oppermann | Date: | Sat, 17 Nov 2001 03:31:26 +0000 |
| Subject: | ldap_search sort extension, patch included | ||
| Groups: | php.dev php.general | ||
| Request: | Send a blank email to php-dev+get-70701@lists.php.net to get a copy of this message | ||
Hello all,
This patch enhances PHP4's ldap_search with a call to
ldap_sort_entries().
int ldap_search (int link_identifier, string base_dn, string filter
[, array attributes [, int attrsonly [, int sizelimit [, int timelimit
[, int deref [, ***string sort***]]]]]])
9th parameter: sort
Sort the entries returned based on attribute. Attribute is a single
("cn") or a list ("cn, mail") of Attributes.
Patch can be found on:
http://www.nrg4u.com
Apply this to php4.0.6/ext/ldap/ldap.c and recompile.
--
Andre