cloudian: add logging, don't update for group 0 users

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Rohit Yadav 2017-10-04 12:18:45 +05:30
parent 84f1a50713
commit 2183a4fd68
1 changed files with 3 additions and 1 deletions

View File

@ -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());
}