Hello!
Short question: I want to use server sort controls in PerLDAP. How?
I have tired Mozilla::LDAP::API, but I have found only insufficient
perldoc documentation and some doumentation for C SDK. No perl examples
feturing LDAP controls whatsoever.
However, I have finaly ended with this (PerLDAP 1.4):
my $sortby = "cn";
my ($sortKeyList,$serverControl);
ldap_create_sort_keylist($sortKeyList,$sortby);
ldap_create_sort_control($ld,$sortKeyList,0,$serverControl);
ldap_free_sort_keylist($sortKeyList);
which segfaults before ldap_free_sort_keylist. Where is the problem?
What I'm doing wrong?
And another question. I have checkout version 1.9 of PerLDAP. Server
controls are still not supported in OO interface. Is there any support
planned?
--
Ing. Radovan Semancik ([EMAIL PROTECTED])
Project Manager, Business Global Systems a.s.