diff --git a/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/user/AddUser.java b/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/user/AddUser.java index a105bcd5b0..d3be8da050 100644 --- a/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/user/AddUser.java +++ b/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/user/AddUser.java @@ -25,7 +25,7 @@ import org.apache.commons.lang3.StringUtils; /** * Adding a new user, example: - * ./artemis user add --username guest --role admin --password *** + * ./artemis user add --user guest --role admin --password *** */ @Command(name = "add", description = "Add a new user") public class AddUser extends PasswordAction { diff --git a/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/user/ListUser.java b/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/user/ListUser.java index b18deba5ff..658abb54a4 100644 --- a/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/user/ListUser.java +++ b/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/user/ListUser.java @@ -25,7 +25,7 @@ import org.apache.activemq.artemis.spi.core.security.jaas.PropertiesLoginModuleC /** * list existing users, example: - * ./artemis user list --username guest + * ./artemis user list --user guest */ @Command(name = "list", description = "List existing user(s)") public class ListUser extends UserAction { diff --git a/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/user/RemoveUser.java b/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/user/RemoveUser.java index c49e36b11d..caeb7bf28c 100644 --- a/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/user/RemoveUser.java +++ b/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/user/RemoveUser.java @@ -22,7 +22,7 @@ import org.apache.activemq.artemis.spi.core.security.jaas.PropertiesLoginModuleC /** * Remove a user, example: - * ./artemis user rm --username guest + * ./artemis user rm --user guest */ @Command(name = "rm", description = "Remove an existing user") public class RemoveUser extends UserAction { diff --git a/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/user/ResetUser.java b/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/user/ResetUser.java index 162aea6269..be97ab9c09 100644 --- a/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/user/ResetUser.java +++ b/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/user/ResetUser.java @@ -25,7 +25,7 @@ import org.apache.commons.lang3.StringUtils; /** * Reset a user's password or roles, example: - * ./artemis user reset --username guest --role admin --password *** + * ./artemis user reset --user guest --role admin --password *** */ @Command(name = "reset", description = "Reset user's password or roles") public class ResetUser extends PasswordAction { diff --git a/docs/user-manual/en/masking-passwords.md b/docs/user-manual/en/masking-passwords.md index c9ec2b49bf..028ce6a043 100644 --- a/docs/user-manual/en/masking-passwords.md +++ b/docs/user-manual/en/masking-passwords.md @@ -103,7 +103,7 @@ add the user/password to. This command will not work from the Artemis home used to create the instance. For example: ```sh -./artemis user add --username guest --password guest --role admin +./artemis user add --user guest --password guest --role admin ``` This will use the default codec to perform a "one-way" hash of the password diff --git a/docs/user-manual/en/security.md b/docs/user-manual/en/security.md index 98eb1243e1..77c69e6aa5 100644 --- a/docs/user-manual/en/security.md +++ b/docs/user-manual/en/security.md @@ -538,7 +538,7 @@ follow the syntax `ENC()`. Hashed passwords can easily be added to *instance*. This command will not work from the Artemis home. ```sh -./artemis user add --username guest --password guest --role admin +./artemis user add --user guest --password guest --role admin ``` This will use the default codec to perform a "one-way" hash of the password