mirror of https://github.com/apache/cloudstack.git
cloudian: add logging, don't update for group 0 users
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
84f1a50713
commit
2183a4fd68
|
|
@ -220,10 +220,12 @@ public class CloudianConnectorImpl extends ComponentLifecycleBase implements Clo
|
|||
if (addedSsoUser == null || !addedSsoUser.getActive()) {
|
||||
throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, "Aborting Cloudian SSO, failed to find mapped Cloudian user, please fix integration issues.");
|
||||
}
|
||||
} else {
|
||||
} else if (!group.equals("0")) {
|
||||
updateUserAccount(caller, domain, ssoUser);
|
||||
}
|
||||
|
||||
LOG.debug(String.format("Returning generated Cloudian SSO URL for user id=%s, group id=%s", user, group));
|
||||
|
||||
return CloudianUtils.generateSSOUrl(getCmcUrl(), user, group, CloudianSsoKey.value());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue