always throw FailedLoginException in cas-server-support-ldap

Description

in class org.jasig.cas.authentication.LdapAuthenticationHandler

Line 155:

if (response.getResult()) {
doPostAuthentication(response);
}

throw new FailedLoginException("LDAP authentication failed.");

problem:
miss return before doPostAuthentication(response);
then always throw FailedLoginException

bugfix:

if (response.getResult()) {
return doPostAuthentication(response);
}

throw new FailedLoginException("LDAP authentication failed.");

Environment

None

Status

Assignee

Marvin Addison

Reporter

hu hunt

Labels

Estimated End Date

None

Audience

None

Time tracking

1h

Components

Fix versions

Affects versions

4.0

Priority

Major