You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2021/11/15 22:01:13 UTC

[directory-ldap-api] branch master updated: Fix for DIRAPI-380

This is an automated email from the ASF dual-hosted git repository.

elecharny pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/directory-ldap-api.git


The following commit(s) were added to refs/heads/master by this push:
     new dbf93d5  Fix for DIRAPI-380
dbf93d5 is described below

commit dbf93d59a5d95d9699b47f60d5e8dc29368083d4
Author: emmanuel lecharny <el...@apache.org>
AuthorDate: Mon Nov 15 23:01:08 2021 +0100

    Fix for DIRAPI-380
---
 .../org/apache/directory/ldap/client/api/AbstractLdapConnection.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/AbstractLdapConnection.java b/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/AbstractLdapConnection.java
index f8c8576..aefddd6 100644
--- a/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/AbstractLdapConnection.java
+++ b/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/AbstractLdapConnection.java
@@ -105,7 +105,7 @@ public abstract class AbstractLdapConnection extends IoHandlerAdapter implements
             LOG.debug( I18n.msg( I18n.MSG_04145_BIND_REQUEST, name ) );
         }
 
-        bind( new Dn( schemaManager, name ), null );
+        bind( new Dn( schemaManager, new Dn( name ) ), null );
     }
 
 
@@ -115,7 +115,7 @@ public abstract class AbstractLdapConnection extends IoHandlerAdapter implements
     @Override
     public void bind( String name, String credentials ) throws LdapException
     {
-        bind( new Dn( schemaManager, name ), credentials );
+        bind( new Dn( schemaManager, new Dn( name ) ), credentials );
     }