From f836c5f523586b8632077b571384a7b57423defd Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Mon, 18 Sep 2006 17:02:17 +0000
Subject: [PATCH] Add a finalizeSASLMechanismHandler method to the SASL ANONYMOUS handler to ensure that the mechanism gets deregistered from the server when it is finalized.
---
opends/src/server/org/opends/server/extensions/AnonymousSASLMechanismHandler.java | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/opends/src/server/org/opends/server/extensions/AnonymousSASLMechanismHandler.java b/opends/src/server/org/opends/server/extensions/AnonymousSASLMechanismHandler.java
index e4e31ff..5e63caa 100644
--- a/opends/src/server/org/opends/server/extensions/AnonymousSASLMechanismHandler.java
+++ b/opends/src/server/org/opends/server/extensions/AnonymousSASLMechanismHandler.java
@@ -111,6 +111,19 @@
+ /**
+ * Performs any finalization that may be necessary for this SASL mechanism
+ * handler.
+ */
+ public void finalizeSASLMechanismHandler()
+ {
+ assert debugEnter(CLASS_NAME, "finalizeSASLMechanismHandler");
+
+ DirectoryServer.deregisterSASLMechanismHandler(SASL_MECHANISM_ANONYMOUS);
+ }
+
+
+
/**
* Processes the provided SASL bind operation. Note that if the SASL
--
Gitblit v1.10.0