* @param dn The distinguished name.
* @return {@code true} if an entry identified by {@code dn} exists. Otherwise, {@code false} is returned.
*/
public boolean verifyDNExists(final String dn) {
try {
final SearchResultEntry entry = connection.getEntry(dn);
return entry != null;
} catch (final LDAPException e) {
throw new DirectoryTesterException("Error communicating with LDAP directory server", e);
}
}