From 6ef7dd973b7f260a4d0d83c572344e15d4b08afa Mon Sep 17 00:00:00 2001 From: shruti gupta Date: Thu, 10 Oct 2024 20:24:32 +0530 Subject: [PATCH] ZBUG-3131 Remove hard-coded password from createBulkAccounts --- store/src/java/com/zimbra/cs/account/ProvUtil.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/store/src/java/com/zimbra/cs/account/ProvUtil.java b/store/src/java/com/zimbra/cs/account/ProvUtil.java index 9b722deb387..f6d34802ca8 100644 --- a/store/src/java/com/zimbra/cs/account/ProvUtil.java +++ b/store/src/java/com/zimbra/cs/account/ProvUtil.java @@ -546,8 +546,8 @@ public enum Command { CREATE_ALWAYSONCLUSTER("createAlwaysOnCluster", "caoc", "{name} [attr1 value1 [attr2 value2...]]", Category.ALWAYSONCLUSTER, 1, Integer.MAX_VALUE), CREATE_BULK_ACCOUNTS( - "createBulkAccounts", "cabulk", "{domain} {namemask} {number of accounts to create}", Category.MISC, 3, - 3), + "createBulkAccounts", "cabulk", "{domain} {namemask} {number of accounts to create} {password}", Category.MISC, 4, + 4), CREATE_CALENDAR_RESOURCE("createCalendarResource", "ccr", "{name@domain} {password} [attr1 value1 [attr2 value2...]]", Category.CALENDAR, 2, Integer.MAX_VALUE), CREATE_COS( @@ -2159,11 +2159,11 @@ private void doResetAllLoggers(String[] args) throws ServiceException { } private void doCreateAccountsBulk(String[] args) throws ServiceException { - if (args.length < 3) { + if (args.length < 4) { usage(); } else { String domain = args[1]; - String password = "test123"; + String password = args[4]; String nameMask = args[2]; int numAccounts = Integer.parseInt(args[3]); for (int ix = 0; ix < numAccounts; ix++) {