8000 Allow to performs paged searches on ldap server · Issue #4452 · curl/curl · GitHub
[go: up one dir, main page]

Skip to content

Allow to performs paged searches on ldap server #4452

@apique13

Description

@apique13

I did this

Hi,
Using the libcurl API, I did an ldap request to my ADLDS server to query with the filter "objectClass=*" to get the memberof, name and type attributes of all records in the LDAP server.
The server returned a huge result with 5002 entries without error.
The result seems to be correct but looked incomplete.

On the server, I changed the Max Page Size to 5000, and the same query, returns now 10474 entries.

I dig a little more and it seems ADLDS server returns paged result when there is too much records. I think to read the pages, it should use the methods : ldap_search_init_page and
ldap_get_next_page_s.
I didn't found any reference to these methods in the libcurl source code.

I expected the following

It will be great to have an option to allow paged search for ldap or at least a way to know the result is incomplete.

curl/libcurl version

Libcurl 7.65.3 built with unicode support on Windows.

operating system

Windows 10

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0