Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Change default LDAP page size to 1000.
This matches Windows' Active Directory maximum page size.

Signed-off-by: Justin Maggard <jmaggard@netgear.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
  • Loading branch information
jmaggard10 authored and vlendec committed Jan 14, 2016
1 parent 19fffeb commit 8c2609f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs-xml/smbdotconf/ldap/ldappagesize.xml
Expand Up @@ -12,6 +12,6 @@
This parameter specifies the size of these pages.
</para>
</description>
<value type="default">1024</value>
<value type="default">1000</value>
<value type="example">512</value>
</samba:parameter>
2 changes: 1 addition & 1 deletion lib/param/loadparm.c
Expand Up @@ -2744,7 +2744,7 @@ struct loadparm_context *loadparm_init(TALLOC_CTX *mem_ctx)

lpcfg_do_global_parameter(lp_ctx, "allocation roundup size", "1048576");

lpcfg_do_global_parameter(lp_ctx, "ldap page size", "1024");
lpcfg_do_global_parameter(lp_ctx, "ldap page size", "1000");

lpcfg_do_global_parameter(lp_ctx, "kernel share modes", "yes");

Expand Down
2 changes: 1 addition & 1 deletion source3/include/smb_ldap.h
Expand Up @@ -78,7 +78,7 @@ struct ldapsam_privates;

#define LDAP_DEFAULT_TIMEOUT 15
#define LDAP_CONNECTION_DEFAULT_TIMEOUT 2
#define LDAP_PAGE_SIZE 1024
#define LDAP_PAGE_SIZE 1000

#define ADS_PAGE_CTL_OID "1.2.840.113556.1.4.319"

Expand Down

0 comments on commit 8c2609f

Please sign in to comment.