[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Any sample on sorting?



At 05:56 PM 1/2/01 -0600, Burkule, Sanju wrote:
>Could anyone point me to a C++ sample which does ldap sorting?

I assume you mean server side sorting (rfc2891).

OpenLDAP 2.x provides an experimental LDAP C API based upon an
expired IETF draft (draft-ietf-asid-ldapv3-api-ext-xx.txt).
Information on how to use the OpenLDAP implementation of this
API can be obtained using the openldap software mailing list.
Note that the OpenLDAP 2.x server does not implement
server side sorting so experience with this implementation
may be scarce.

Netscape/Mozilla provides an alternative implementation which
may or may not be compatible with the OpenLDAP implementation.
If using this API, I suggest getting help from a Netscape specific
forum.

There may be other implementations (of this or other APIs)...
and they likely provide resources for their users.


>An example
>related to Active Directory would be great. I am not able to get
>ldap_create_sort_control to work. It throws some exception. Its not clear
>whether the first parameter - LDAPSortKey list - ends with a NULL or not. 
>Any help is appreciated.
>Thanks,
>-sanju