Skip to content

Commit 2183a4f

Browse files
cloudian: add logging, don't update for group 0 users
Signed-off-by: Rohit Yadav <[email protected]>
1 parent 84f1a50 commit 2183a4f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

plugins/integrations/cloudian/src/org/apache/cloudstack/cloudian/CloudianConnectorImpl.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,10 +220,12 @@ public String generateSsoUrl() {
220220
if (addedSsoUser == null || !addedSsoUser.getActive()) {
221221
throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, "Aborting Cloudian SSO, failed to find mapped Cloudian user, please fix integration issues.");
222222
}
223-
} else {
223+
} else if (!group.equals("0")) {
224224
updateUserAccount(caller, domain, ssoUser);
225225
}
226226

227+
LOG.debug(String.format("Returning generated Cloudian SSO URL for user id=%s, group id=%s", user, group));
228+
227229
return CloudianUtils.generateSSOUrl(getCmcUrl(), user, group, CloudianSsoKey.value());
228230
}
229231

0 commit comments

Comments
 (0)