From f11baa48675eda7a3c4de818c57c50f116676c3f Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Mon, 26 Sep 2011 20:38:51 +0000
Subject: [PATCH] Fix OPENDJ-292: LDAP PTA NPE when base-dn or bind-dn not exist on secondary server
---
opends/src/server/org/opends/server/extensions/LDAPPassThroughAuthenticationPolicyFactory.java | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/opends/src/server/org/opends/server/extensions/LDAPPassThroughAuthenticationPolicyFactory.java b/opends/src/server/org/opends/server/extensions/LDAPPassThroughAuthenticationPolicyFactory.java
index 6968ca3..dc8d1e5 100644
--- a/opends/src/server/org/opends/server/extensions/LDAPPassThroughAuthenticationPolicyFactory.java
+++ b/opends/src/server/org/opends/server/extensions/LDAPPassThroughAuthenticationPolicyFactory.java
@@ -214,7 +214,8 @@
// The associated server is unavailable, so close the connection and
// try the next connection factory.
connection.close();
- factory.isAvailable = false;
+ factory.lastException = e;
+ factory.isAvailable = false; // publishes lastException
while (nextIndex != startIndex)
{
@@ -309,7 +310,7 @@
TRACER.debugCaught(DebugLogLevel.ERROR, e);
}
lastException = e;
- isAvailable = false; // publish lastException
+ isAvailable = false; // publishes lastException
throw e;
}
}
--
Gitblit v1.10.0