From 4a4a8540f0b64feff6934c3215c6f896c9561c7d Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Thu, 08 Feb 2007 22:27:58 +0000
Subject: [PATCH] Update the AuthenticationInfo object to store the entries for the authentication and authorization identities rather than just their DNs. This includes a mechanism to keep those entries up to date as changes occur in the server, and also includes a hook for ClientConnection subclasses to perform processing whenever a connection is terminated.
---
opends/src/server/org/opends/server/messages/CoreMessages.java | 16 ++++++++++++++++
1 files changed, 16 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 67f2b53..295310f 100644
--- a/opends/src/server/org/opends/server/messages/CoreMessages.java
+++ b/opends/src/server/org/opends/server/messages/CoreMessages.java
@@ -6150,6 +6150,17 @@
/**
+ * The message ID for the message that will be used if a client connection is
+ * terminated because the associated authentication or authorization entry was
+ * removed from the server. It takes a single argument, which is the DN of
+ * the entry that has been removed.
+ */
+ public static final int MSGID_CLIENTCONNECTION_DISCONNECT_DUE_TO_DELETE =
+ CATEGORY_MASK_CORE | SEVERITY_MASK_MILD_WARNING | 588;
+
+
+
+ /**
* Associates a set of generic messages with the message IDs defined
* in this class.
*/
@@ -8321,6 +8332,11 @@
"Rejecting the requested operation " +
"because the connection has not been authenticated.");
+
+ registerMessage(MSGID_CLIENTCONNECTION_DISCONNECT_DUE_TO_DELETE,
+ "Terminating the client connection because its " +
+ "associated authentication or authorization entry %s has " +
+ "been deleted.");
}
}
--
Gitblit v1.10.0