Skip to content
Permalink
Browse files
DIRAPI-374: Consistify LdapConnectionConfig useTls and useSsl flags
  • Loading branch information
seelmann committed Jun 19, 2021
1 parent 2cf66a1 commit bf32f0e902ffb08839defcaf3c1de5164d83e092
Showing 1 changed file with 7 additions and 7 deletions.
@@ -996,7 +996,13 @@ public boolean connect() throws LdapException
messageId.set( 0 );

connectionCloseFuture = new CompletableFuture<>();


// establish TLS layer if TLS is enabled and SSL is NOT
if ( config.isUseTls() && !config.isUseSsl() )
{
startTls();
}

// And return
return true;
}
@@ -1623,12 +1629,6 @@ public BindFuture bindAsync( BindRequest bindRequest ) throws LdapException
// try to connect, if we aren't already connected.
connect();

// establish TLS layer if TLS is enabled and SSL is NOT
if ( config.isUseTls() && !config.isUseSsl() )
{
startTls();
}

// If the session has not been establish, or is closed, we get out immediately
checkSession();

0 comments on commit bf32f0e

Please sign in to comment.