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