directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r1493147 - /directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/api/DirectoryApiConnectionWrapper.java
Date Fri, 14 Jun 2013 16:38:33 GMT
Author: pamarcelot
Date: Fri Jun 14 16:38:33 2013
New Revision: 1493147

URL: http://svn.apache.org/r1493147
Log:
Fix for DIRSTUDIO-868 (Do not send an unbind request if the authentication fails)

Modified:
    directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/api/DirectoryApiConnectionWrapper.java

Modified: directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/api/DirectoryApiConnectionWrapper.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/api/DirectoryApiConnectionWrapper.java?rev=1493147&r1=1493146&r2=1493147&view=diff
==============================================================================
--- directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/api/DirectoryApiConnectionWrapper.java
(original)
+++ directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/api/DirectoryApiConnectionWrapper.java
Fri Jun 14 16:38:33 2013
@@ -278,7 +278,11 @@ public class DirectoryApiConnectionWrapp
         {
             try
             {
-                ldapConnection.unBind();
+                if ( ldapConnection.isAuthenticated() )
+                {
+                    ldapConnection.unBind();
+                }
+                
                 ldapConnection.close();
             }
             catch ( Exception e )



Mime
View raw message