andykimpe / rpms / 389-ds-base

Forked from rpms/389-ds-base 5 months ago
Clone

Blame 0266-Ticket-47457-default-nsslapd-sasl-max-buffer-size-sh.patch

dc8c34
From bddcaeebd7e8745e0bcecfbb050eefa00e20ddde Mon Sep 17 00:00:00 2001
dc8c34
From: Mark Reynolds <mreynolds@redhat.com>
dc8c34
Date: Wed, 27 Nov 2013 14:59:14 -0500
dc8c34
Subject: [PATCH 266/267] Ticket 47457 - default nsslapd-sasl-max-buffer-size
dc8c34
 should be 2MB
dc8c34
dc8c34
Description:  Increase the default max buffer size to 2mb from 64k.
dc8c34
dc8c34
https://fedorahosted.org/389/ticket/47457
dc8c34
dc8c34
Reviewed by: richm(Thanks!)
dc8c34
dc8c34
(cherry picked from commit 846447c62e3ad2150b054c87c96e797dc1d803f3)
dc8c34
(cherry picked from commit c65fcdcef8d277273d85a00835d063eeaa22123b)
dc8c34
(cherry picked from commit 819467e9ab2efc4acaece6f52a733b5241fb042b)
dc8c34
---
dc8c34
 ldap/servers/slapd/libglobs.c | 7 +++++--
dc8c34
 1 file changed, 5 insertions(+), 2 deletions(-)
dc8c34
dc8c34
diff --git a/ldap/servers/slapd/libglobs.c b/ldap/servers/slapd/libglobs.c
dc8c34
index ad02a00..b2cb8e2 100644
dc8c34
--- a/ldap/servers/slapd/libglobs.c
dc8c34
+++ b/ldap/servers/slapd/libglobs.c
dc8c34
@@ -182,6 +182,9 @@ static int config_set_schemareplace ( const char *attrname, char *value,
dc8c34
 #define DEFAULT_PW_RESETFAILURECOUNT "600"
dc8c34
 #define DEFAULT_PW_LOCKDURATION "3600"
dc8c34
 #define DEFAULT_NDN_SIZE "20971520"
dc8c34
+#define DEFAULT_MAXBERSIZE 2097152
dc8c34
+#define DEFAULT_SASL_MAXBUFSIZE "2097152"
dc8c34
+#define SLAPD_DEFAULT_SASL_MAXBUFSIZE 2097152
dc8c34
 #ifdef MEMPOOL_EXPERIMENTAL
dc8c34
 #define DEFAULT_MEMPOOL_MAXFREELIST "1024"
dc8c34
 #endif
dc8c34
@@ -5385,9 +5388,9 @@ config_get_maxbersize()
dc8c34
 
dc8c34
     maxbersize = slapdFrontendConfig->maxbersize;
dc8c34
     if(maxbersize==0)
dc8c34
-        maxbersize= 2 * 1024 * 1024; /* Default: 2Mb */
dc8c34
-    return maxbersize;
dc8c34
+        maxbersize = DEFAULT_MAXBERSIZE;
dc8c34
 
dc8c34
+    return maxbersize;
dc8c34
 }
dc8c34
 
dc8c34
 int
dc8c34
-- 
dc8c34
1.9.3
dc8c34