From b4e7c2adbcf17bb3017ffc4aad6d395187bc4e59 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Sun, 29 Jul 2007 20:58:29 +0000
Subject: [PATCH] Add support for a new disconnect client task that can be used to allow an administrator to terminate a client connection if the need arises.  The requester must have the disconnect-client privilege.  The task entry should contain the ds-task-disconnect object class, which requires the ds-task-disconnect-connection-id attribute type and optionally allows the ds-task-disconnect-notify-client and ds-task-disconnect-message attribute types.

---
 opends/src/server/org/opends/server/util/ServerConstants.java |   35 +++++++++++++++++++++++++++++++++++
 1 files changed, 35 insertions(+), 0 deletions(-)

diff --git a/opends/src/server/org/opends/server/util/ServerConstants.java b/opends/src/server/org/opends/server/util/ServerConstants.java
index dd213c4..6a54295 100644
--- a/opends/src/server/org/opends/server/util/ServerConstants.java
+++ b/opends/src/server/org/opends/server/util/ServerConstants.java
@@ -498,6 +498,32 @@
 
 
   /**
+   * The name of the attribute that is used to specify the connection ID of the
+   * connection to disconnect.
+   */
+  public static final String ATTR_TASK_DISCONNECT_CONN_ID =
+       "ds-task-disconnect-connection-id";
+
+
+
+  /**
+   * The name of the attribute that is used to specify the disconnect message.
+   */
+  public static final String ATTR_TASK_DISCONNECT_MESSAGE =
+       "ds-task-disconnect-message";
+
+
+
+  /**
+   * The name of the attribute that is used to indicate whether to notify the
+   * connection it is about to be terminated.
+   */
+  public static final String ATTR_TASK_DISCONNECT_NOTIFY_CLIENT =
+       "ds-task-disconnect-notify-client";
+
+
+
+  /**
    * The name of the attribute that is used to specify the total number of
    * connections established since startup, formatted in camel case.
    */
@@ -687,6 +713,15 @@
 
 
   /**
+   * The OID for the extended operation that can be used to get the client
+   * connection ID.  It will be both the request and response OID.
+   */
+  public static final String OID_GET_CONNECTION_ID_EXTOP =
+       "1.3.6.1.4.1.26027.1.6.2";
+
+
+
+  /**
    * The request OID for the password modify extended operation.
    */
   public static final String OID_PASSWORD_MODIFY_REQUEST =

--
Gitblit v1.10.0