Digital Marketing

How to solve: Secure Admin must be enabled to access the DAS remotely in Glassfish / Payara Java EE application server

Enable Glassfish / Payara secure admin

asadmin> get secure-admin.enabled
secure-admin.enabled=false
Command get executed successfully.
asadmin> enable-secure-admin
You must restart all running servers for the change in secure admin to take effect.
Command enable-secure-admin executed successfully.
asadmin> restart-domain

Successfully restarted the domain
Command restart-domain executed successfully.
asadmin> get secure-admin.enabled
secure-admin.enabled=true
Command get executed successfully.

If you encounter:
asadmin>  enable-secure-admin
remote failure: At least one admin user has an empty password, which secure admin does not permit. Use the change-admin-password command or the admin console to create non-empty passwords for admin accounts.
Command enable-secure-admin failed.
asadmin> change-admin-password
Enter admin user name [default: admin]>
Enter the admin password> 
Enter the new admin password> 
Enter the new admin password again> 
Command change-admin-password executed successfully.

asadmin> 

Comments

Popular posts from this blog

MySQL Sandbox with the Sakila sample database