KEYCLOAK-2811 FederationProvidersIntegrationTest.testReadOnly failing on MSAD

This commit is contained in:
mposolda 2016-04-13 12:39:55 +02:00
parent 7bcd954e91
commit df1c111a72

View file

@ -117,6 +117,10 @@ public class MSADUserAccountControlMapper extends AbstractLDAPFederationMapper {
protected ModelException processFailedPasswordUpdateException(ModelException e) {
if (e.getCause() == null || e.getCause().getMessage() == null) {
return e;
}
String exceptionMessage = e.getCause().getMessage().replace('\n', ' ');
Matcher m = AUTH_INVALID_NEW_PASSWORD.matcher(exceptionMessage);
if (m.matches()) {