From 08f9243b55eb5f0f8030eebe976a0d85ffbd44c2 Mon Sep 17 00:00:00 2001
From: ludovicp <ludovicp@localhost>
Date: Fri, 30 Jul 2010 15:11:25 +0000
Subject: [PATCH] Implements a configurable limit in the number of persistent searches a server can handle.
---
opends/src/admin/defn/org/opends/server/admin/std/WorkQueueConfiguration.xml | 31 +++++++++++++++++++++++++++++--
1 files changed, 29 insertions(+), 2 deletions(-)
diff --git a/opends/src/admin/defn/org/opends/server/admin/std/WorkQueueConfiguration.xml b/opends/src/admin/defn/org/opends/server/admin/std/WorkQueueConfiguration.xml
index 0dc4a7d..b04964d 100644
--- a/opends/src/admin/defn/org/opends/server/admin/std/WorkQueueConfiguration.xml
+++ b/opends/src/admin/defn/org/opends/server/admin/std/WorkQueueConfiguration.xml
@@ -23,7 +23,7 @@
! CDDL HEADER END
!
!
- ! Copyright 2007-2008 Sun Microsystems, Inc.
+ ! Copyright 2007-2010 Sun Microsystems, Inc.
! -->
<adm:managed-object name="work-queue" plural-name="work-queues"
package="org.opends.server.admin.std"
@@ -33,7 +33,7 @@
<adm:synopsis>
The
<adm:user-friendly-name />
- provides the configuration for the server work queue and
+ provides the configuration for the server work queue and
is responsible for ensuring that requests received from clients are
processed in a timely manner.
</adm:synopsis>
@@ -75,4 +75,31 @@
</ldap:attribute>
</adm:profile>
</adm:property>
+ <adm:property name="max-psearches">
+ <adm:synopsis>
+ Defines the maximum number of concurrent persistent searches that
+ can be performed on Directory Server
+ </adm:synopsis>
+ <adm:description>
+ The persistent search mechanism provides an active channel through which entries that change,
+ and information about the changes that occur, can be communicated. Because each persistent search
+ operation uses one thread, limiting the number of simultaneous persistent searches prevents certain
+ kinds of denial of service attacks. A value of 0 indicates that there is no limit on the persistent searches.
+ </adm:description>
+ <adm:default-behavior>
+ <adm:alias>
+ <adm:synopsis>
+ Let the server decide.
+ </adm:synopsis>
+ </adm:alias>
+ </adm:default-behavior>
+ <adm:syntax>
+ <adm:integer lower-limit="0" upper-limit="2147483647" />
+ </adm:syntax>
+ <adm:profile name="ldap">
+ <ldap:attribute>
+ <ldap:name>ds-cfg-max-psearches</ldap:name>
+ </ldap:attribute>
+ </adm:profile>
+ </adm:property>
</adm:managed-object>
--
Gitblit v1.10.0