Error : Admin Must be Enabled to Access the DAS Remotely on GlassFish
We know GlassFish installed path /usr/local/glassfish4
# cd /usr/local/glasshfish4/bin
# ./asadmin
# ./asadmin
1
2
3
4
5
6
7
8
9
10
| Use "exit" to exit and "help" for online help.asadmin> change-admin-passwordEnter admin user name [default: admin]>adminEnter the admin password>Enter the new admin password> [enter your new password]Enter the new admin password again> [enter your new password again]Command change-admin-password executed successfully. |
To enable secure admin run the below command,
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
| asadmin>enable-secure-adminEnter admin user name> adminEnter admin password for user "admin">You must restart all running servers for the change in secure admin to take effect.Command enable-secure-admin executed successfully.asadmin> stop-domainWaiting for the domain to stop .Command stop-domain executed successfully.asadmin> start-domainWaiting for domain1 to start .....................Successfully started the domain : domain1domain Location: /usr/local/glassfish4/glassfish/domains/domain1Log File: /usr/local/glassfish4/glassfish/domains/domain1/logs/server.logAdmin Port: 4848Command start-domain executed successfully. |
# ./asadmin list-file-users --authrealmname admin-realm
1
2
3
4
5
6
7
| ...adminCommand list-file-users executed successfully.asadmin> exitCommand multimode executed successfully. |
Now, you can login into Glassfish admin panel on browser without any errors.