Issue Details (XML | Word | Printable)

Key: GLASSFISH-18004
Type: Bug Bug
Status: Resolved Resolved
Resolution: Invalid
Priority: Major Major
Assignee: Byron Nevins
Reporter: easarina
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.

The user was not asked to enter AS_ADMIN_WINDOWSPASSWORD

Created: 14/Dec/11 10:20 PM   Updated: 15/Dec/11 05:11 AM   Resolved: 15/Dec/11 05:11 AM
Component/s: distributed management
Affects Version/s: 3.1.2_b14
Fix Version/s: None

Time Tracking:
Not Specified

Participants: Byron Nevins and easarina

 Description  « Hide

GF 3.1.2 build 14, Win 2008 machine. Executed the follow command:
asadmin create-node-dcom --nodehost localhost qq
remote failure: Missing Windows password. If you are using asadmin, specify the
remote Windows password in a file as follows:
Specify the path of the password file to asadmin with the --passwordfile (or -W)
Command create-node-dcom failed.

Before in this case, the AS_ADMIN_WINDOWSPASSWORD was asked two times. Now it was not asked at all. I believe that, as for any other GF existent passwords, the AS_ADMIN_WINDOWSPASSWORD has to be asked one time, if it was not provided in the passwordfile.

Byron Nevins added a comment - 15/Dec/11 05:11 AM

Note that this command runs in the server, not in the client.

Before – the client saw that there is no passwordfile and used the built-in support in Asadmin to get a password. But that support is hard-coded to ask for a password twice. It is currently impossible to force it to ask only once.

A good solution, which we can't do for 3.1.2, is to create a new attribute for Parameters – something that would tell it to ask for the password ONCE not TWICE.

The choices were to either ask twice for the password or to require a password file.
Nazrul made the call to do the latter - which is what it does now.

If you try the analogous ssh commands they behave exactly the same way (if you are using password authentication)

Elena – You should consider filing an issue against CLI for the prompt-once-for-password capability.