LDAP V3 Server Side Sorting
| From: | David Giffin | Date: | Wed, 16 May 2001 01:17:11 +0000 |
| Subject: | LDAP V3 Server Side Sorting | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-55405@lists.php.net to get a copy of this message | ||
Hello,
I added in a function to provide server side sorting on searches. This is
a LDAP version 3 specific function, and uses the Netscape API so I have
ifdef'ed the new function. It adds a "sortstr" attriubte to the
ldap_search() function that already exists in php. There might be a better
way to incorporate the code into php, but here is my first attempt.
proto int ldap_sort_search(int link, string base_dn, string filter
[, array attrs [, string sortstr [, int attrsonly [, int sizelimit
[, int timelimit [, int deref]]]]])
Thanks,
David Giffin