129130131132133134135136137138139
} catch (AuthenticationException aex) { if (aex.getMessage() != null && aex.getMessage().equalsIgnoreCase("[LDAP: error code 49 - Invalid Credentials]")) { throw new InvalidPasswordException(); } else { throw new SecurityException(aex); }