diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2012-01-16 16:27:01 -0500 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2012-01-18 09:27:56 -0500 |
commit | 8270b1b8505e4bce5ec065daa8fcdf985e1fc9f5 (patch) | |
tree | d7bd59fc63e1c4f28307d82bb56cc4dedda46e04 /src/providers/ldap/sdap_async.c | |
parent | fd3714d0cf068f3c782c1fff32105fc51cc97a0e (diff) | |
download | sssd-8270b1b8505e4bce5ec065daa8fcdf985e1fc9f5.tar.gz sssd-8270b1b8505e4bce5ec065daa8fcdf985e1fc9f5.tar.bz2 sssd-8270b1b8505e4bce5ec065daa8fcdf985e1fc9f5.zip |
LDAP: Add option to disable paging control
Fixes https://fedorahosted.org/sssd/ticket/967
Diffstat (limited to 'src/providers/ldap/sdap_async.c')
-rw-r--r-- | src/providers/ldap/sdap_async.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/providers/ldap/sdap_async.c b/src/providers/ldap/sdap_async.c index 0719f74b..c2f616be 100644 --- a/src/providers/ldap/sdap_async.c +++ b/src/providers/ldap/sdap_async.c @@ -978,6 +978,7 @@ static errno_t sdap_get_generic_ext_step(struct tevent_req *req) int optret; errno_t ret; int msgid; + bool disable_paging; LDAPControl *page_control = NULL; @@ -999,8 +1000,11 @@ static errno_t sdap_get_generic_ext_step(struct tevent_req *req) } } - if (sdap_is_control_supported(state->sh, - LDAP_CONTROL_PAGEDRESULTS)) { + disable_paging = dp_opt_get_bool(state->opts->basic, SDAP_DISABLE_PAGING); + + if (!disable_paging + && sdap_is_control_supported(state->sh, + LDAP_CONTROL_PAGEDRESULTS)) { lret = ldap_create_page_control(state->sh->ldap, state->sh->page_size, state->cookie.bv_val ? |