From cf6ce939e5b551c147d76a86c91345622916756a Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Tue, 26 Sep 2006 20:24:21 +0000
Subject: [PATCH] Update the LDAP connection handler to ensure that it invokes the post-connect plugins at the appropriate time. Update the LDAP client connection to ensure that it invokes the post-disconnect plugins at the appropriate time.
---
opends/src/server/org/opends/server/protocols/ldap/LDAPClientConnection.java | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/opends/src/server/org/opends/server/protocols/ldap/LDAPClientConnection.java b/opends/src/server/org/opends/server/protocols/ldap/LDAPClientConnection.java
index 1c03ae9..0283af7 100644
--- a/opends/src/server/org/opends/server/protocols/ldap/LDAPClientConnection.java
+++ b/opends/src/server/org/opends/server/protocols/ldap/LDAPClientConnection.java
@@ -56,6 +56,7 @@
import org.opends.server.core.ModifyDNOperation;
import org.opends.server.core.Operation;
import org.opends.server.core.PersistentSearch;
+import org.opends.server.core.PluginConfigManager;
import org.opends.server.core.SearchOperation;
import org.opends.server.core.UnbindOperation;
import org.opends.server.extensions.NullConnectionSecurityProvider;
@@ -1125,7 +1126,17 @@
}
- // NYI -- Invoke the post-disconnect plugins.
+ try
+ {
+ PluginConfigManager pluginManager =
+ DirectoryServer.getPluginConfigManager();
+ pluginManager.invokePostDisconnectPlugins(this, disconnectReason,
+ messageID, message);
+ }
+ catch (Exception e)
+ {
+ assert debugException(CLASS_NAME, "disconnect", e);
+ }
}
--
Gitblit v1.10.0