[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: check if the server supports paged search and server side sorting
On Tue, Dec 09, 2003 at 05:41:21PM +0100, François Beretti wrote:
> I would like to check in my program if paged search and server side
> sorting are supported by the ldap server I am connecting to.
> How can I do it with the OpenLDAP's libldap library ?
A query like "ldapsearch -x -s base -b "" +" will get you what the
server supports. Your result should be something similar to:
dn:
namingContexts: dn=domain,dc=com
supportedControl: 2.16.840.1.113730.3.4.2
supportedExtension: 1.3.6.1.4.1.4203.1.11.1
supportedExtension: 1.3.6.1.4.1.1466.20037
supportedFeatures: 1.3.6.1.4.1.4203.1.5.1
supportedLDAPVersion: 2
supportedLDAPVersion: 3
subschemaSubentry: cn=Subschema