mirror of https://github.com/apache/cloudstack.git
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:
parent
a715ab4b18
commit
0a113461d7
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue