| | |
| | | boolean triedWithUserProvidedAdmin = false; |
| | | final ConnectionWrapper conn1 = conn.get(); |
| | | HostPort hostPort = conn1.getHostPort(); |
| | | Type connectionType = getConnectionType(conn1); |
| | | Type connectionType = conn1.getConnectionType(); |
| | | if (getTrustManager(ci) == null) |
| | | { |
| | | // This is required when the user did connect to the server using SSL or |
| | |
| | | return !cancelled; |
| | | } |
| | | |
| | | private Type getConnectionType(final ConnectionWrapper conn) |
| | | { |
| | | if (conn.isSSL()) |
| | | { |
| | | return LDAPS; |
| | | } |
| | | else if (conn.isStartTLS()) |
| | | { |
| | | return START_TLS; |
| | | } |
| | | else |
| | | { |
| | | return LDAP; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * Tells whether there is a Global Administrator defined in the server for which the connection is |
| | | * provided. |