Stop the server, if it is currently running.
Change to the appropriate WEB-INF directory; for example:
as-install/lib/install/applications/adminapp/adminapp_war/WEB-INF |
Comment out the entire <security-constraint> element in the web.xml file.
Do not delete the element, as you will be reenabling it later. This action disables security for command-line operations.
The commands will still expect a value for --username (or -u) and --password (or -w). But these can be dummy values, since the server side does not impose any security.
Start the server.
At this point, the server does not have command-line security.
Create a plain text file that defines the AS_ADMIN_USERPASSWORD variable as follows:
AS_ADMIN_USERPASSWORD=adminpassword |
Your choice of password for the administration user's password.
Create an administration user whose password is the password that you defined in the preceding step.
asadmin create-file-user --groups asadmin --passwordfile=password-file adminuser |
The full path to the file that you created in the previous step.
The name of the user that you are creating.
This command adds an entry to the as-install/domains/domain-name/config/keyfile file.
Uncomment the <security-constraint> element in the web.xml file.
Restart the server for the new user name-password to take effect.
After the server is restarted, remote commands must specify adminuser as the administration user and adminpassword as the administration password.