You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: plugins/network-elements/juniper-contrail/test/org/apache/cloudstack/network/contrail/management/MockAccountManager.java
description = "Creates the user under the specified account. If no account is specified, the username will be used as the account name.")
55
+
@Parameter(name = ApiConstants.ACCOUNT, type = CommandType.STRING, description = "Creates the user under the specified account. If no account is specified, the username will be used as the account name.")
58
56
privateStringaccountName;
59
57
60
-
@Parameter(name = ApiConstants.ACCOUNT_TYPE,
61
-
type = CommandType.SHORT,
62
-
required = true,
63
-
description = "Type of the account. Specify 0 for user, 1 for root admin, and 2 for domain admin")
58
+
@Parameter(name = ApiConstants.ACCOUNT_TYPE, type = CommandType.SHORT, required = true, description = "Type of the account. Specify 0 for user, 1 for root admin, and 2 for domain admin")
64
59
privateShortaccountType;
65
60
66
61
@Parameter(name = ApiConstants.DOMAIN_ID, type = CommandType.UUID, entityType = DomainResponse.class, description = "Creates the user under the specified domain.")
67
62
privateLongdomainId;
68
63
69
-
@Parameter(name = ApiConstants.TIMEZONE,
70
-
type = CommandType.STRING,
71
-
description = "Specifies a timezone for this command. For more information on the timezone parameter, see Time Zone Format.")
64
+
@Parameter(name = ApiConstants.TIMEZONE, type = CommandType.STRING, description = "Specifies a timezone for this command. For more information on the timezone parameter, see Time Zone Format.")
Copy file name to clipboardExpand all lines: plugins/user-authenticators/ldap/src/org/apache/cloudstack/api/command/LdapImportUsersCmd.java
+24-2Lines changed: 24 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,7 @@
25
25
26
26
importjavax.inject.Inject;
27
27
28
+
importcom.cloud.user.Account;
28
29
importorg.apache.cloudstack.api.APICommand;
29
30
importorg.apache.cloudstack.api.ApiConstants;
30
31
importorg.apache.cloudstack.api.ApiErrorCode;
@@ -87,6 +88,9 @@ public class LdapImportUsersCmd extends BaseListCmd {
87
88
88
89
privateDomain_domain;
89
90
91
+
@Parameter(name = ApiConstants.ACCOUNT, type = CommandType.STRING, description = "Creates the user under the specified account. If no account is specified, the username will be used as the account name.")
92
+
privateStringaccountName;
93
+
90
94
@Inject
91
95
privateLdapManager_ldapManager;
92
96
@@ -101,6 +105,17 @@ public LdapImportUsersCmd(final LdapManager ldapManager, final DomainService dom
0 commit comments