connection.getConnectionParameter().setName( null );
connection.getConnectionParameter().setBindPrincipal( entry.getDn().getUpName() );
connection.getConnectionParameter().setBindPassword( testPasswordText.getText() );
connection.getConnectionParameter().setAuthMethod( AuthenticationMethod.SIMPLE );
CheckBindRunnable runnable = new CheckBindRunnable( connection );
IStatus status = RunnableContextRunner.execute( runnable, null, true );
if ( status.isOK() )
{
MessageDialog.openInformation( Display.getDefault().getActiveShell(), Messages
.getString( "PasswordDialog.CheckAuthentication" ), //$NON-NLS-1$