ldap/servers/slapd/connection.c | 8 ++++++++
1 file changed, 8 insertions(+)
New commits:
commit 3fe24648364634649aa7379095e915e7ab9058cd
Author: Noriko Hosoi <nhosoi(a)redhat.com>
Date: Tue Oct 27 17:22:46 2015 -0700
Ticket #48326 - [RFE] it could be nice to have nsslapd-maxbersize default to bigger
than 2Mb
Description: In connection_dispatch_operation, if the operation sets
the flag OP_FLAG_REPLICATED, ignore the maxbersize by setting:
maxbersize = 0;
ber_sockbuf_ctrl(conn->c_sb, LBER_SB_OPT_SET_MAX_INCOMING, &maxbersize);
Note: openldap only.
https://fedorahosted.org/389/ticket/48326
Reviewed by mreynolds(a)redhat.com (Thank you, Mark!!)
diff --git a/ldap/servers/slapd/connection.c b/ldap/servers/slapd/connection.c
index fc3b741..1a9301a 100644
--- a/ldap/servers/slapd/connection.c
+++ b/ldap/servers/slapd/connection.c
@@ -531,6 +531,14 @@ connection_dispatch_operation(Connection *conn, Operation *op,
Slapi_PBlock *pb)
/* Copy the Connection DN and SSF into the operation struct */
op_copy_identity( conn, op );
+#if defined(USE_OPENLDAP)
+ if (slapi_operation_is_flag_set(op, OP_FLAG_REPLICATED)) {
+ /* If it is replicated op, ignore the maxbersize. */
+ ber_len_t maxbersize = 0;
+ ber_sockbuf_ctrl(conn->c_sb, LBER_SB_OPT_SET_MAX_INCOMING, &maxbersize);
+ }
+#endif
+
/* If the minimum SSF requirements are not met, only allow
* bind and extended operations through. The bind and extop
* code will ensure that only SASL binds and startTLS are