]
Jan Kalina moved JBEAP-11166 to WFCORE-2877:
--------------------------------------------
Project: WildFly Core (was: JBoss Enterprise Application Platform)
Key: WFCORE-2877 (was: JBEAP-11166)
Workflow: GIT Pull Request workflow (was: CDW with loose statuses v1)
Component/s: Domain Management
(was: Security)
The add-user script doesn't prompt when updating a user
-------------------------------------------------------
Key: WFCORE-2877
URL:
https://issues.jboss.org/browse/WFCORE-2877
Project: WildFly Core
Issue Type: Bug
Components: Domain Management
Reporter: Jan Kalina
Assignee: Jan Kalina
Priority: Blocker
The add-user script is not prompting when entering a username that already exists (to
update a user). It automatically overwrites the existing user information. This is what I
see when I enter the username "test", which already exists:
{code}
[ahoffer@ahoffer bin] $ ./add-user.sh
What type of user do you wish to add?
a) Management User (mgmt-users.properties)
b) Application User (application-users.properties)
(a):
Enter the details of the new user to add.
Using realm 'ManagementRealm' as discovered from the existing property files.
Username : test
Password recommendations are listed below. To modify these restrictions edit the
add-user.properties configuration file.
- The password should be different from the username
- The password should not be one of the following restricted values {root, admin,
administrator}
- The password should contain at least 8 characters, 1 alphabetic character(s), 1
digit(s), 1 non-alphanumeric symbol(s)
Password :
{code}
Before I get asked for a password, I should see the following prompt for this existing
user:
{code}
User 'test' already exists and is enabled, would you like to...
a) Update the existing user password and roles
b) Disable the existing user
c) Type a new username
{code}