LDAP server side sorting
| From: | Christos Sintoris | Date: | Tue, 27 Nov 2001 14:08:39 +0000 |
| Subject: | LDAP server side sorting | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-75781@lists.php.net to get a copy of this message | ||
Does anybody know how to call ldap_set_option in order to use server side
sorting?
using:
$sortval="{'cn', 0,1}";
$ctrl1 = array("oid" => "1.2.840.113556.1.4.473", "value"
=>$sortval);
ldap_set_option($ds, LDAP_OPT_SERVER_CONTROLS, array($ctrl1));
reports success, but ldap_get_option() returns nothing and a subsequend
ldap_search
returns protocol error. I use LDAP V3 (iPlanet).
Thanks
Christos Sintoris