From bf7b61bf7e22fc0c1c0bf69255f44d0139c86937 Mon Sep 17 00:00:00 2001
From: boli <boli@localhost>
Date: Thu, 24 Aug 2006 15:50:33 +0000
Subject: [PATCH] Add a configuration option to limit the number of entries that will be checked for matches during a search operation. A value of -1 or 0 will remove the limit, like the behavior of DS 5 and 6. Changed the "unlimited" values of size and time limits to be consistent with the lookthrough limit (-1 or 0).
---
opends/src/server/org/opends/server/config/ConfigConstants.java | 24 ++++++++++++++++++++++++
1 files changed, 24 insertions(+), 0 deletions(-)
diff --git a/opends/src/server/org/opends/server/config/ConfigConstants.java b/opends/src/server/org/opends/server/config/ConfigConstants.java
index 4da841b..dc08a82 100644
--- a/opends/src/server/org/opends/server/config/ConfigConstants.java
+++ b/opends/src/server/org/opends/server/config/ConfigConstants.java
@@ -1992,6 +1992,21 @@
*/
public static final int DEFAULT_SIZE_LIMIT = 1000;
+ /**
+ * The name of the configuration attribute that holds the server lookthrough
+ * limit.
+ */
+ public static final String ATTR_LOOKTHROUGH_LIMIT =
+ NAME_PREFIX_CFG + "lookthrough-limit";
+
+
+
+ /**
+ * The default value that will be used for the server lookthrough limit if
+ * no other value is given.
+ */
+ public static final int DEFAULT_LOOKTHROUGH_LIMIT = 5000;
+
/**
@@ -3194,6 +3209,15 @@
/**
+ * The name of the operational attribute that may be included in user
+ * entries to specify a lookthrough limit for that user.
+ */
+ public static final String OP_ATTR_USER_LOOKTHROUGH_LIMIT =
+ NAME_PREFIX_RLIM + "lookthrough-limit";
+
+
+
+ /**
* The name of the attribute option used to indicate that a configuration
* attribute has one or more pending values.
*/
--
Gitblit v1.10.0