From 518c1454ceec785840cef26d8906a8fe7cf0ce1e Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Sat, 06 Jan 2007 23:25:24 +0000
Subject: [PATCH] Update the LDAP authentication handler to fix a potential null pointer exception that could be thrown if the connection to the server was lost between sending the bind request and getting the bind response.
---
opends/src/server/org/opends/server/messages/ToolMessages.java | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/opends/src/server/org/opends/server/messages/ToolMessages.java b/opends/src/server/org/opends/server/messages/ToolMessages.java
index 1be5637..e6a9b9b 100644
--- a/opends/src/server/org/opends/server/messages/ToolMessages.java
+++ b/opends/src/server/org/opends/server/messages/ToolMessages.java
@@ -7507,6 +7507,17 @@
/**
+ * The message ID for the message that will be used if the connection to the
+ * Directory Server is closed while attempting to read the bind response from
+ * the server. This does not take any arguments.
+ */
+ public static final int
+ MSGID_LDAPAUTH_CONNECTION_CLOSED_WITHOUT_BIND_RESPONSE =
+ CATEGORY_MASK_TOOLS | SEVERITY_MASK_SEVERE_ERROR | 789;
+
+
+
+ /**
* Associates a set of generic messages with the message IDs defined in this
* class.
*/
@@ -8030,6 +8041,9 @@
registerMessage(MSGID_LDAPAUTH_CANNOT_SEND_SIMPLE_BIND,
"Cannot send the simple bind request: %s.");
+ registerMessage(MSGID_LDAPAUTH_CONNECTION_CLOSED_WITHOUT_BIND_RESPONSE,
+ "The connection to the Directory Server was closed " +
+ "before the bind response could be read.");
registerMessage(MSGID_LDAPAUTH_CANNOT_READ_BIND_RESPONSE,
"Cannot read the bind response from the server: " +
"%s.");
--
Gitblit v1.10.0