bug 11480: verify account/user state when do single signon verification

status 11480: resolved fixed

Reviewed-by: kelven@cloud.com
This commit is contained in:
alena 2011-09-19 10:51:02 -07:00
parent a715ab4b18
commit 0a113461d7
1 changed files with 7 additions and 0 deletions

View File

@ -510,6 +510,13 @@ public class ManagementServerImpl implements ManagementServer {
}
return null;
}
if (!userAccount.getState().equalsIgnoreCase(Account.State.enabled.toString()) || !userAccount.getAccountState().equalsIgnoreCase(Account.State.enabled.toString())) {
if (s_logger.isInfoEnabled()) {
s_logger.info("User " + username + " in domain id=" + domainId + " is disabled/locked (or account is disabled/locked)");
}
throw new CloudAuthenticationException("User " + username + " in domain id=" + domainId + " is disabled/locked (or account is disabled/locked)");
}
return userAccount;
}