| | |
| | | import java.util.Iterator; |
| | | import java.util.LinkedHashSet; |
| | | |
| | | import javax.naming.NamingException; |
| | | import javax.swing.JLabel; |
| | | import javax.swing.JPasswordField; |
| | | import javax.swing.JTextField; |
| | |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | | import org.forgerock.i18n.slf4j.LocalizedLogger; |
| | | import org.forgerock.opendj.ldap.DN; |
| | | import org.forgerock.opendj.ldap.LdapException; |
| | | import org.opends.admin.ads.util.ApplicationTrustManager; |
| | | import org.opends.admin.ads.util.ConnectionWrapper; |
| | | import org.opends.guitools.controlpanel.datamodel.ConfigReadException; |
| | |
| | | handleCertificateException = true; |
| | | } |
| | | } |
| | | else if (throwable instanceof NamingException) |
| | | else if (throwable instanceof LdapException) |
| | | { |
| | | boolean found = false; |
| | | String providedDn = dn.getText(); |
| | |
| | | getAdministrativeUsers().iterator(); |
| | | while (it.hasNext() && !found) |
| | | { |
| | | found = Utils.areDnsEqual(providedDn, it.next().toString()); |
| | | found = DN.valueOf(providedDn).equals(it.next()); |
| | | } |
| | | if (!found) |
| | | { |
| | |
| | | } |
| | | else |
| | | { |
| | | errors.add(Utils.getMessageForException( |
| | | (NamingException)throwable)); |
| | | errors.add(Utils.getMessageForException((LdapException) throwable)); |
| | | } |
| | | |
| | | setPrimaryInvalid(dnLabel); |