s3-libads: Use the configured LDAP page size.
[obnox/samba/samba-obnox.git] / source3 / libads / ads_struct.c
index 27af4d6c7556a98762993ae1ab076d5212fe6a28..0dc7b11d4002623873a639501ed99fd7f9a5798a 100644 (file)
@@ -154,9 +154,9 @@ ADS_STRUCT *ads_init(const char *realm,
 
        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;
 }