public BindFuture bindAsync( DN name, String credentials ) throws LdapException, IOException
{
LOG.debug( "Bind request : {}", name );
// Create the BindRequest
BindRequest bindRequest = new BindRequest();
bindRequest.setCredentials( StringTools.getBytesUtf8( credentials ) );
if ( name == null )
{
bindRequest.setName( StringTools.EMPTY );
}
else
{
bindRequest.setName( name.getName() );
}
return bindAsync( bindRequest );
}