connection.setName( null );
connection.setBindPrincipal( entry.getDn().getUpName() );
connection.setBindPassword( testPasswordText.getText() );
connection.setAuthMethod( AuthenticationMethod.SIMPLE );
CheckBindRunnable runnable = new CheckBindRunnable( connection );
IStatus status = RunnableContextRunner.execute( runnable, null, true );
if ( status.isOK() )
{
MessageDialog.openInformation( Display.getDefault().getActiveShell(), "Check Authentication",
"The authentication was successful." );