ads->auth.flags = wrap_flags;
- /* Start with a page size of 1000 when the connection is new,
+ /* Start with the configured page size when the connection is new,
* we will drop it by half we get a timeout. */
- ads->config.ldap_page_size = 1000;
+ ads->config.ldap_page_size = lp_ldap_page_size();
return ads;
}