From 594d7dc0035cd90e3faa469fdd1d5e178e0efae8 Mon Sep 17 00:00:00 2001
From: sin <sin@localhost>
Date: Tue, 23 Jan 2007 17:37:11 +0000
Subject: [PATCH] Bug# 428: Adding support for rejecting unauthenticated requests
---
opends/src/server/org/opends/server/messages/ConfigMessages.java | 34 ++++++++++++++++++++++++++++++++++
1 files changed, 34 insertions(+), 0 deletions(-)
diff --git a/opends/src/server/org/opends/server/messages/ConfigMessages.java b/opends/src/server/org/opends/server/messages/ConfigMessages.java
index 7c6f95d..95d77b9 100644
--- a/opends/src/server/org/opends/server/messages/ConfigMessages.java
+++ b/opends/src/server/org/opends/server/messages/ConfigMessages.java
@@ -6196,6 +6196,26 @@
CATEGORY_MASK_CONFIG | SEVERITY_MASK_SEVERE_ERROR | 575;
+ /**
+ * The message ID for the description of whether the server should
+ * reject unauthenticated requests. This does not take any arguments.
+ */
+ public static final int
+ MSGID_CONFIG_CORE_DESCRIPTION_REJECT_UNAUTHENTICATED_REQUESTS =
+ CATEGORY_MASK_CONFIG | SEVERITY_MASK_INFORMATIONAL | 576;
+
+
+ /**
+ * The message ID for the message that will be used if an error occurs while
+ * trying to process the server configuration for rejecting the
+ * unauthenticated operations.This takes two arguments, which are the DN of
+ * the configuration entry and a string representation of the exception that
+ * was caught.
+ */
+ public static final int
+ MSGID_CONFIG_CORE_REJECT_UNAUTHENTICATED_REQUESTS_INVALID =
+ CATEGORY_MASK_CONFIG | SEVERITY_MASK_SEVERE_ERROR | 577;
+
/**
* Associates a set of generic messages with the message IDs defined in this
@@ -8981,6 +9001,20 @@
"Unable to set the requested file permissions to the " +
"backend database directory. The requested permissions " +
"will result in an inaccessable database.");
+ registerMessage(
+ MSGID_CONFIG_CORE_DESCRIPTION_REJECT_UNAUTHENTICATED_REQUESTS,
+ "Indicates whether the Directory Server should reject " +
+ "requests from unauthenticated clients. If this is set " +
+ "to \"true\", then unauthenticated clients will only be "+
+ "allowed to send bind and StartTLS requests. Changes to "+
+ "this configuration attribute will take effect " +
+ "immediately.");
+ registerMessage(MSGID_CONFIG_CORE_REJECT_UNAUTHENTICATED_REQUESTS_INVALID,
+ "Configuration entry %s has an invalid value for" +
+ "configuration attribute " +
+ ATTR_REJECT_UNAUTHENTICATED_REQ + "(the value should " +
+ "be either true or false)");
+
}
}
--
Gitblit v1.10.0