| | |
| | | } |
| | | else |
| | | { |
| | | errorMessage = INFO_ERROR_READING_CONFIG_LDAP.get(detail); |
| | | errorMessage = ERR_READING_CONFIG_LDAP.get(detail); |
| | | } |
| | | } |
| | | catch (Throwable t) |
| | | { |
| | | // Bug |
| | | t.printStackTrace(); |
| | | errorMessage = INFO_ERROR_READING_CONFIG_LDAP.get(t.toString()); |
| | | errorMessage = ERR_READING_CONFIG_LDAP.get(t.toString()); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | else |
| | | { |
| | | throw new ConfigException(INFO_COULD_NOT_FIND_VALID_LDAPURL.get()); |
| | | throw new ConfigException(ERR_COULD_NOT_FIND_VALID_LDAPURL.get()); |
| | | } |
| | | break; |
| | | case USE_LDAPS: |
| | |
| | | } |
| | | else |
| | | { |
| | | throw new ConfigException(INFO_COULD_NOT_FIND_VALID_LDAPURL.get()); |
| | | throw new ConfigException(ERR_COULD_NOT_FIND_VALID_LDAPURL.get()); |
| | | } |
| | | break; |
| | | case USE_LDAP: |
| | |
| | | } |
| | | else |
| | | { |
| | | throw new ConfigException(INFO_COULD_NOT_FIND_VALID_LDAPURL.get()); |
| | | throw new ConfigException(ERR_COULD_NOT_FIND_VALID_LDAPURL.get()); |
| | | } |
| | | break; |
| | | case USE_MOST_SECURE_AVAILABLE: |
| | |
| | | } |
| | | else |
| | | { |
| | | throw new ConfigException(INFO_COULD_NOT_FIND_VALID_LDAPURL.get()); |
| | | throw new ConfigException(ERR_COULD_NOT_FIND_VALID_LDAPURL.get()); |
| | | } |
| | | break; |
| | | case USE_LESS_SECURE_AVAILABLE: |
| | |
| | | } |
| | | else |
| | | { |
| | | throw new ConfigException(INFO_COULD_NOT_FIND_VALID_LDAPURL.get()); |
| | | throw new ConfigException(ERR_COULD_NOT_FIND_VALID_LDAPURL.get()); |
| | | } |
| | | break; |
| | | default: |
| | |
| | | } |
| | | else |
| | | { |
| | | throw new ConfigException(INFO_COULD_NOT_FIND_VALID_LDAPURL.get()); |
| | | throw new ConfigException(ERR_COULD_NOT_FIND_VALID_LDAPURL.get()); |
| | | } |
| | | break; |
| | | case USE_LDAPS: |
| | |
| | | } |
| | | else |
| | | { |
| | | throw new ConfigException(INFO_COULD_NOT_FIND_VALID_LDAPURL.get()); |
| | | throw new ConfigException(ERR_COULD_NOT_FIND_VALID_LDAPURL.get()); |
| | | } |
| | | break; |
| | | case USE_LDAP: |
| | |
| | | } |
| | | else |
| | | { |
| | | throw new ConfigException(INFO_COULD_NOT_FIND_VALID_LDAPURL.get()); |
| | | throw new ConfigException(ERR_COULD_NOT_FIND_VALID_LDAPURL.get()); |
| | | } |
| | | break; |
| | | case USE_MOST_SECURE_AVAILABLE: |
| | |
| | | } |
| | | else |
| | | { |
| | | throw new ConfigException(INFO_COULD_NOT_FIND_VALID_LDAPURL.get()); |
| | | throw new ConfigException(ERR_COULD_NOT_FIND_VALID_LDAPURL.get()); |
| | | } |
| | | break; |
| | | case USE_LESS_SECURE_AVAILABLE: |
| | |
| | | } |
| | | else |
| | | { |
| | | throw new ConfigException(INFO_COULD_NOT_FIND_VALID_LDAPURL.get()); |
| | | throw new ConfigException(ERR_COULD_NOT_FIND_VALID_LDAPURL.get()); |
| | | } |
| | | break; |
| | | default: |