DaanHoogland commented on code in PR #8236:
URL: https://github.com/apache/cloudstack/pull/8236#discussion_r1636403583
##########
plugins/user-authenticators/ldap/src/main/java/org/apache/cloudstack/api/command/LinkAccountToLdapCmd.java:
##########
@@ -134,7 +138,14 @@ public String getAdmin() {
}
public Account.Type getAccountType() {
- return Account.Type.getFromValue(accountType);
+ if (accountType == null) {
+ return RoleType.getAccountTypeByRole(roleService.findRole(roleId),
null);
+ }
+ return RoleType.getAccountTypeByRole(roleService.findRole(roleId),
Account.Type.getFromValue(accountType.intValue()));
+ }
+
+ public Long getRoleId() {
+ return RoleType.getRoleByAccountType(roleId, getAccountType());
Review Comment:
see:
https://github.com/apache/cloudstack/commit/f06e4f22d29c3a2725cab696dbc2e39f6ea8a245
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]