diff --git a/distribution/feature-packs/server-feature-pack/src/main/resources/content/bin/add-user.bat b/distribution/feature-packs/server-feature-pack/src/main/resources/content/bin/add-user-keycloak.bat
similarity index 100%
rename from distribution/feature-packs/server-feature-pack/src/main/resources/content/bin/add-user.bat
rename to distribution/feature-packs/server-feature-pack/src/main/resources/content/bin/add-user-keycloak.bat
diff --git a/distribution/feature-packs/server-feature-pack/src/main/resources/content/bin/add-user.sh b/distribution/feature-packs/server-feature-pack/src/main/resources/content/bin/add-user-keycloak.sh
similarity index 100%
rename from distribution/feature-packs/server-feature-pack/src/main/resources/content/bin/add-user.sh
rename to distribution/feature-packs/server-feature-pack/src/main/resources/content/bin/add-user-keycloak.sh
diff --git a/distribution/server-overlay/assembly.xml b/distribution/server-overlay/assembly.xml
index 54165f3a0e..532308ccc0 100755
--- a/distribution/server-overlay/assembly.xml
+++ b/distribution/server-overlay/assembly.xml
@@ -80,12 +80,12 @@
standalone/configuration
-
+
binadd-user-keycloak.sh
-
+
binadd-user-keycloak.bat
diff --git a/docbook/auth-server-docs/reference/en/en-US/modules/MigrationFromOlderVersions.xml b/docbook/auth-server-docs/reference/en/en-US/modules/MigrationFromOlderVersions.xml
index 69c8c8d056..f77a6bd893 100755
--- a/docbook/auth-server-docs/reference/en/en-US/modules/MigrationFromOlderVersions.xml
+++ b/docbook/auth-server-docs/reference/en/en-US/modules/MigrationFromOlderVersions.xml
@@ -97,6 +97,16 @@
Version specific migration
+
+ Migrating to 1.9.3
+
+ Add User script renamed
+
+ The script to add admin users to Keycloak has been renamed to add-user-keycloak.
+
+
+
+
Migrating to 1.9.2
diff --git a/docbook/auth-server-docs/reference/en/en-US/modules/server-installation.xml b/docbook/auth-server-docs/reference/en/en-US/modules/server-installation.xml
index acc75d2512..00583643c1 100755
--- a/docbook/auth-server-docs/reference/en/en-US/modules/server-installation.xml
+++ b/docbook/auth-server-docs/reference/en/en-US/modules/server-installation.xml
@@ -117,22 +117,16 @@ bin/jboss-cli.sh --file=bin/keycloak-install-ha.cli
To access the admin console to configure Keycloak you need an account to login. There is no built in user,
instead you have to first create an admin account. This can done either by opening http://localhost:8080/auth
- (creating a user through the browser can only be done through localhost) or you can use the add-user script from
+ (creating a user through the browser can only be done through localhost) or you can use the add-user-keycloak script from
the command-line.
- The add-user script creates a temporary file with the details of the user,
+ The add-user-keycloak script creates a temporary file with the details of the user,
which are imported at startup. To add a user with this script run:
-p
-]]>
- Then restart the server.
-
-
- For keycloak-overlay, please make sure to use:
- -p
]]>
+ Then restart the server.
diff --git a/wildfly/adduser/src/main/java/org/keycloak/wildfly/adduser/AddUser.java b/wildfly/adduser/src/main/java/org/keycloak/wildfly/adduser/AddUser.java
index a95ea5e00b..c76cab0b2d 100644
--- a/wildfly/adduser/src/main/java/org/keycloak/wildfly/adduser/AddUser.java
+++ b/wildfly/adduser/src/main/java/org/keycloak/wildfly/adduser/AddUser.java
@@ -42,7 +42,6 @@ import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.lang.reflect.Method;
-import java.util.Arrays;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
@@ -64,13 +63,7 @@ public class AddUser {
System.exit(1);
}
- if (command.isContainer()) {
- List l = new LinkedList<>(Arrays.asList(args));
- l.remove("--container");
- args = l.toArray(new String[l.size()]);
-
- org.jboss.as.domain.management.security.adduser.AddUser.main(args);
- } else if (command.isHelp()) {
+ if (command.isHelp()) {
printHelp(command);
} else {
try {
@@ -273,9 +266,6 @@ public class AddUser {
@Option(hasValue = false, description = "Enable domain mode")
private boolean domain;
- @Option(hasValue = false, description = "Add user to underlying container. For usage use '--container --help'")
- private boolean container;
-
@Option(hasValue = true, description = "Define the location of the server config directory")
private String sc;
@@ -314,10 +304,6 @@ public class AddUser {
return domain;
}
- public boolean isContainer() {
- return container;
- }
-
public String getSc() {
return sc;
}