mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

lutoff
11.01.2009 05fe600a2ac31bf42bc4b64e3d362f546df5b191
Fix for issue #839 (ldapsearch returns wrong error code when --useStartTLS used with LDAPS port)
Add specific code for LDAPException handling
1 files modified
8 ■■■■■ changed files
opends/src/server/org/opends/server/tools/LDAPConnection.java 8 ●●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/tools/LDAPConnection.java
@@ -204,6 +204,14 @@
        // Read the response from the server.
        msg = ldapReader.readMessage();
      }catch (LDAPException ex1)
      {
        if (debugEnabled())
        {
          TRACER.debugCaught(DebugLogLevel.ERROR, ex1);
        }
        throw new LDAPConnectionException(Message.raw(ex1.getMessage()), ex1
            .getResultCode(), null, ex1);
      } catch (Exception ex1)
      {
        if (debugEnabled())