directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r1143371 - /directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java
Date Wed, 06 Jul 2011 12:16:55 GMT
Author: pamarcelot
Date: Wed Jul  6 12:16:54 2011
New Revision: 1143371

URL: http://svn.apache.org/viewvc?rev=1143371&view=rev
Log:
Fix for DIRAPI-49 (LdapNetworkConnection.anonymousBind() uses name and credentials from configuration
instead of empty values).

Modified:
    directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java

Modified: directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java?rev=1143371&r1=1143370&r2=1143371&view=diff
==============================================================================
--- directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java
(original)
+++ directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java
Wed Jul  6 12:16:54 2011
@@ -933,7 +933,7 @@ public class LdapNetworkConnection exten
         LOG.debug( "Anonymous Bind request" );
 
         // Create the BindRequest
-        BindRequest bindRequest = createBindRequest( config.getName(), Strings.getBytesUtf8(
config.getCredentials() ) );
+        BindRequest bindRequest = createBindRequest( StringConstants.EMPTY, StringConstants.EMPTY_BYTES
);
 
         BindResponse bindResponse = bind( bindRequest );
 
@@ -3833,7 +3833,6 @@ public class LdapNetworkConnection exten
             // Quality of Protection SASL property
             if ( saslRequest.getQualityOfProtection() != null )
             {
-
                 properties.put( Sasl.QOP, saslRequest.getQualityOfProtection().getValue()
);
             }
 



Mime
View raw message