s3-libads: Use a reducing page size to try and cope with a slow LDAP server
[samba.git] / source3 / libads / ads_struct.c
index aef35ad822e08ff67cfff1b4c200dbe086d1169f..2d9ea17faac8147c44e988359ddea3a40cc32ff3 100644 (file)
@@ -148,6 +148,10 @@ ADS_STRUCT *ads_init(const char *realm,
 
        ads->auth.flags = wrap_flags;
 
+       /* Start with a page size of 1000 when the connection is new,
+        * we will drop it by half we get a timeout.   */
+       ads->config.ldap_page_size     = 1000;
+
        return ads;
 }