Samba4/LDB/Paged Searches

From SambaWiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Source Code

The source code is located at source4/lib/ldb/modules/paged_searches.c.

Structures

struct ps_context {
    struct ldb_module *module;
    struct ldb_request *req;

    bool pending;

    char **saved_referrals;
    int num_referrals;

    struct ldb_request *down_req;
};

Methods

ps_init()

This method checks the root DSE of the backend LDAP server to see whether it supports paged results control (1.2.840.113556.1.4.319).

ps_search()

This method intercepts each search request and adds paged results control.

ps_callback()

This method handles the search results and the paged results control.