if ( entry != null )
{
SelectEntryDialog dialog = new SelectEntryDialog( parent.getShell(), "Select DN", connection,
entry );
dialog.open();
IEntry selectedEntry = dialog.getSelectedEntry();
if ( selectedEntry != null )
{
dn = selectedEntry.getDn();
dnChanged();