connection.setName( null );
connection.setBindPrincipal( this.entry.getDn().toString() );
connection.setBindPassword( this.testPasswordText.getText() );
connection.setAuthMethod( IConnection.AUTH_SIMPLE );
CheckBindJob job = new CheckBindJob( connection );
RunnableContextJobAdapter.execute( job );
if ( job.getExternalResult().isOK() )
{
MessageDialog.openInformation( Display.getDefault().getActiveShell(), "Check Authentication",
"The authentication was successful." );
}