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/messages/CoreMessages.java | 27 +++++++++++++++++++++++++++
1 files changed, 27 insertions(+), 0 deletions(-)
diff --git a/opends/src/server/org/opends/server/messages/CoreMessages.java b/opends/src/server/org/opends/server/messages/CoreMessages.java
index 521ac73..f5df4dc 100644
--- a/opends/src/server/org/opends/server/messages/CoreMessages.java
+++ b/opends/src/server/org/opends/server/messages/CoreMessages.java
@@ -5824,6 +5824,25 @@
CATEGORY_MASK_CORE | SEVERITY_MASK_MILD_ERROR | 556;
+ /**
+ * The message ID for the message that will be used if a user entry contains
+ * multiple values for the user-specific lookthrough limit attribute.
+ * This takes a single argument, which is the DN of the user entry.
+ */
+ public static final int MSGID_BIND_MULTIPLE_USER_LOOKTHROUGH_LIMITS =
+ CATEGORY_MASK_CORE | SEVERITY_MASK_SEVERE_WARNING | 557;
+
+
+ /**
+ * The message ID for the message that will be used if an error occurs while
+ * trying to parse a user-specific lookthrough value as an integer. This takes
+ * two arguments, which are the provided lookthrough limit value and the DN
+ * of the user entry.
+ */
+ public static final int MSGID_BIND_CANNOT_PROCESS_USER_LOOKTHROUGH_LIMIT =
+ CATEGORY_MASK_CORE | SEVERITY_MASK_SEVERE_WARNING | 558;
+
+
/**
* Associates a set of generic messages with the message IDs defined
@@ -7870,6 +7889,14 @@
"An error occured while trying to create an instance " +
"of class %s to use as the Directory Server work queue: " +
"%s.");
+ registerMessage(MSGID_BIND_MULTIPLE_USER_LOOKTHROUGH_LIMITS,
+ "There are multiple user-specific lookthrough limit " +
+ "values contained in user entry %s. The default server " +
+ "lookthrough limit will be used.");
+ registerMessage(MSGID_BIND_CANNOT_PROCESS_USER_LOOKTHROUGH_LIMIT,
+ "The user-specific lookthrough limit value %s contained " +
+ "in user entry %s could not be parsed as an integer. " +
+ "The default server lookthrough limit will be used.");
}
}
--
Gitblit v1.10.0