Re: Problem enabling secure admin

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem enabling secure admin

forums-8
Still having the smae problem enabling secure admin. The following are the
step i follow: Downloaded latest version of glassfish: wget
http://download.java.net/glassfish/3.1.2/release/glassfish-3.1.2.zip unzipped
it $ asadmin change-master-password > changeit > > $ asadmin start-domain
domain1 > $ 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
list-file-users --authrealmname admin-realm admin Command list-file-users
executed successfully.

--

[Message sent by forum member 'xenoky']

View Post: http://forums.java.net/node/884509


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem enabling secure admin

forums-8
i found the mistake, the command to change the password is:
change-admin-password instead of change-master-password

--

[Message sent by forum member 'xenoky']

View Post: http://forums.java.net/node/884509


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem enabling secure admin

Tim Quinn-2
In reply to this post by forums-8
I am not able to reproduce the problem you are seeing.

I downloaded 3.1.2, unzipped it, then ran the following commands:

$ asadmin start-domain
Waiting for domain1 to start .......
Successfully started the domain : domain1
domain  Location: /Users/tjquinn/asgroup/v3/3.1.2/3.1.2/publish/glassfish3/glassfish/domains/domain1
Log File: /Users/tjquinn/asgroup/v3/3.1.2/3.1.2/publish/glassfish3/glassfish/domains/domain1/logs/server.log
Admin Port: 4848
Command start-domain executed successfully.
$ asadmin change-admin-password
Enter admin user name [default: admin]>  (pressed enter to use the default)
Enter admin password>   (pressed enter to use the default empty password)
Enter new admin password>  (entered the new, non-empty password)
Enter new admin password again>   (repeated the new, non-empty password)
Command change-admin-password executed successfully.
$ asadmin enable-secure-admin
Enter admin user name>  (pressed enter to use the default)
Enter admin password>   (entered the new, non-empty password)
You must restart all running servers for the change in secure admin to take effect.
Command enable-secure-admin executed successfully.

It is working as expected for me.

- Tim

On Apr 13, 2012, at 4:37 AM, [hidden email] wrote:

Still having the smae problem enabling secure admin. The following are the
step i follow: Downloaded latest version of glassfish: wget
http://download.java.net/glassfish/3.1.2/release/glassfish-3.1.2.zip unzipped
it $ asadmin change-master-password > changeit > > $ asadmin start-domain
domain1 > $ 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
list-file-users --authrealmname admin-realm admin Command list-file-users
executed successfully.

--

[Message sent by forum member 'xenoky']

View Post: http://forums.java.net/node/884509



Loading...